diff options
author | Joas Schilling <coding@schilljs.com> | 2022-10-04 12:08:48 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-10-04 16:02:08 +0200 |
commit | 5f060687c8a0c77f1a61bf9a3462d4bfa4fe055f (patch) | |
tree | d86425eae0d2a3b3bee11262e5c3b2a52645bd89 /lib/PublicShareAuth | |
parent | aac298148e1cac88c1437e016f2ffe4f7e24d8d0 (diff) |
Move getParticipant()
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/PublicShareAuth')
-rw-r--r-- | lib/PublicShareAuth/Listener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicShareAuth/Listener.php b/lib/PublicShareAuth/Listener.php index d955f22ce..93b43a512 100644 --- a/lib/PublicShareAuth/Listener.php +++ b/lib/PublicShareAuth/Listener.php @@ -91,15 +91,15 @@ class Listener { return; } + $participantService = Server::get(ParticipantService::class); try { - $participant = $room->getParticipant($userId, false); + $participant = $participantService->getParticipant($room, $userId, false); if ($participant->getAttendee()->getParticipantType() === Participant::OWNER) { return; } } catch (ParticipantNotFoundException $e) { } - $participantService = Server::get(ParticipantService::class); if ($participantService->getNumberOfActors($room) > 1) { throw new RoomNotFoundException('Only the owner and another participant are allowed in rooms to request the password for a share'); } |