Skip to content

Commit

Permalink
fixup! fixup! fix(conversations): fix password enforcement logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Dec 11, 2024
1 parent 8e76957 commit 0d85086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/RoomService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

Expand Down

0 comments on commit 0d85086

Please sign in to comment.