Skip to content

Commit e377ef5

Browse files
authored
Merge pull request #14227 from nextcloud/backport/14209/stable31
2 parents f7859fe + d4d2166 commit e377ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/Service/RoomService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function createConversation(int $type, string $name, ?IUser $owner = null
169169
throw new PasswordException(PasswordException::REASON_VALUE, $this->l10n->t('Password needs to be set'));
170170
}
171171

172-
if ($type !== Room::TYPE_PUBLIC) {
172+
if ($type !== Room::TYPE_PUBLIC || $password === '') {
173173
$room = $this->manager->createRoom($type, $name, $objectType, $objectId);
174174
} else {
175175
$event = new ValidatePasswordPolicyEvent($password);

0 commit comments

Comments
 (0)