From 0d850868f4068e4889b24e9fac7a9c7d498ab61b Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Wed, 11 Dec 2024 14:26:20 +0100 Subject: [PATCH] fixup! fixup! fix(conversations): fix password enforcement logic error --- lib/Service/RoomService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index 9e4922c6fe6..59b5228e421 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -165,7 +165,7 @@ public function createConversation(int $type, string $name, ?IUser $owner = null throw new InvalidArgumentException('object'); } - if ($type === Room::TYPE_PUBLIC && $password === '' && $this->config->isPasswordEnforced() === true) { + if ($type === Room::TYPE_PUBLIC && $password === '' && $this->config->isPasswordEnforced()) { throw new PasswordException(PasswordException::REASON_VALUE, $this->l10n->t('Password needs to be set')); }