diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-03 18:14:46 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-26 11:46:44 +0300 |
commit | 10bda4ff03d08cb891dccb96a860c44650e1e5b6 (patch) | |
tree | d5252900f5a455d0c1ac3a78c6fe517698847356 /lib/Controller | |
parent | f4d0368d1442ccfdfbe0418d0eb860da66e6fbe8 (diff) |
Show pins to moderators
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/RoomController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index fd37addb6..cc07ce174 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -544,6 +544,7 @@ class RoomController extends AEnvironmentAwareController { 'actorId' => '', 'attendeeId' => 0, 'canEnableSIP' => false, + 'attendeePin' => '', ]); } @@ -603,6 +604,7 @@ class RoomController extends AEnvironmentAwareController { 'actorType' => $attendee->getActorType(), 'actorId' => $attendee->getActorId(), 'attendeeId' => $attendee->getId(), + 'attendeePin' => $attendee->getPin(), ]); } @@ -1055,6 +1057,10 @@ class RoomController extends AEnvironmentAwareController { $result['attendeeId'] = $participant->getAttendee()->getId(); $result['actorId'] = $participant->getAttendee()->getActorId(); $result['actorType'] = $participant->getAttendee()->getActorType(); + if ($this->participant->hasModeratorPermissions(false) + || $this->participant->getAttendee()->getId() === $participant->getAttendee()->getId()) { + $result['attendeePin'] = (string) $participant->getAttendee()->getPin(); + } } if ($participant->getSession() instanceof Session) { $result['inCall'] = $participant->getSession()->getInCall(); |