diff --git a/lib/Controller/JoinController.php b/lib/Controller/JoinController.php index b598ca6..c025427 100644 --- a/lib/Controller/JoinController.php +++ b/lib/Controller/JoinController.php @@ -99,7 +99,7 @@ class JoinController extends Controller { throw new NoPermissionException(); } - if ($userId === $room->userId) { + if ($this->permission->isAdmin($room, $userId)) { $presentation = new Presentation($u, $filename); } } elseif ($room->access === Room::ACCESS_INTERNAL || $room->access == Room::ACCESS_INTERNAL_RESTRICTED) {