diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-03 12:06:13 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-04 17:35:24 +0100 |
commit | 95f22e96defaa49128a9fc31f5c791e549546dc3 (patch) | |
tree | 6ab2caa2092c3435563b07d2fc4b53c4e484a353 /lib/Controller/RoomController.php | |
parent | 5d63a47b7d2416ece39fc702b101538860a94b3b (diff) |
Prevent toggling guests or the lobby directly
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/RoomController.php')
-rw-r--r-- | lib/Controller/RoomController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 08fa7fedf..4272cde23 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -1740,6 +1740,11 @@ class RoomController extends AEnvironmentAwareController { } } + if ($this->room->getObjectType() === BreakoutRoom::PARENT_OBJECT_TYPE) { + // Do not allow manual changing the lobby in breakout rooms + return new DataResponse([], Http::STATUS_BAD_REQUEST); + } + if (!$this->roomService->setLobby($this->room, $state, $timerDateTime)) { return new DataResponse([], Http::STATUS_BAD_REQUEST); } |