Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-30 15:10:14 +0300
committerJoas Schilling <coding@schilljs.com>2020-11-30 18:13:27 +0300
commit8078dd8d2741974a23cca9ad3ff66afa492a5f06 (patch)
tree1eccf20980ab8dbb7d4bec26d975051e1e0a1def /lib/Service
parent671ded54864357639ef7fa46163772a9a4b6791d (diff)
Make sure we always generate a PIN for users when SIP is enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ParticipantService.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 8707cf3ca..67ff97ced 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -283,6 +283,7 @@ class ParticipantService {
$attendee = $participant->getAttendee();
if ($room->getSIPEnabled() === Webinary::SIP_ENABLED
&& $this->talkConfig->isSIPConfigured()
+ && $attendee->getActorType() === Attendee::ACTOR_USERS
&& !$attendee->getPin()) {
$attendee->setPin($this->generatePin());
$this->attendeeMapper->update($attendee);