diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-11-26 14:24:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 14:24:35 +0300 |
commit | 80c581a1fe66fc5106fc6bd794c17752a7d51890 (patch) | |
tree | c1ac7ee490939df4a9c6f374fd7560b4346fbaca | |
parent | b9c5d2992019e78d7c3d37c1ec2af64f138b7af4 (diff) | |
parent | 2ff5adfa24701386a8b6391030842a293c3be6bd (diff) |
Merge pull request #6622 from nextcloud/backport/6613/stable23
[stable23] Implement tests on command create room
-rw-r--r-- | lib/Command/Room/Create.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Command/Room/Create.php b/lib/Command/Room/Create.php index 4b5208e2e..13e2f0eee 100644 --- a/lib/Command/Room/Create.php +++ b/lib/Command/Room/Create.php @@ -105,11 +105,6 @@ class Create extends Base { $owner = $input->getOption('owner'); $moderators = $input->getOption('moderator'); - if (!in_array($readOnly, [null, (string)Room::READ_WRITE, (string)Room::READ_ONLY], true)) { - $output->writeln('<error>Invalid value for option "--readonly" given.</error>'); - return 1; - } - if (!in_array($listable, [ null, (string)Room::LISTABLE_NONE, |