fix: allow admin to start room with presentation

pull/63/head
sualko 2020-06-19 09:41:40 +02:00
parent 86415b3f6a
commit 7242360bd8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {