summaryrefslogtreecommitdiffstats
path: root/lib/Controller/RoomController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-02 16:02:25 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-04 17:35:22 +0100
commit249a34da965a6169b373f4cc4e212711684065e4 (patch)
tree40758f1ad9d4132e7d5eb79d72e431fac6afc8ea /lib/Controller/RoomController.php
parentffd0f2525eca3f5fc0c7a9efaed3a5cad20d73b5 (diff)
Restrict the object rooms that can be created
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/RoomController.php')
-rw-r--r--lib/Controller/RoomController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 9128b5035..08fa7fedf 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -825,6 +825,8 @@ class RoomController extends AEnvironmentAwareController {
} catch (ParticipantNotFoundException $e) {
return new DataResponse(['error' => 'permissions'], Http::STATUS_BAD_REQUEST);
}
+ } elseif ($objectType !== '') {
+ return new DataResponse(['error' => 'object'], Http::STATUS_BAD_REQUEST);
}
// Create the room