summaryrefslogtreecommitdiffstats
path: root/lib/Controller/PageController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-26 12:48:58 +0100
committerJoas Schilling <coding@schilljs.com>2020-10-30 10:38:50 +0100
commit3bacf9c650f2dd4d3489f0dfa8f67a8ad010ed98 (patch)
treee39eee837d3b4368d6ef06be55212c0842618f47 /lib/Controller/PageController.php
parentca16dcab45e95d3ebc93519e7a87d158da2f5ca4 (diff)
Fix some more participant handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r--lib/Controller/PageController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index 78fb51126..79b8fe53c 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -216,7 +216,7 @@ class PageController extends Controller {
// If the user joined themselves or is not found, they need the password.
try {
$participant = $room->getParticipant($this->userId);
- $requirePassword = $participant->getParticipantType() === Participant::USER_SELF_JOINED;
+ $requirePassword = $participant->getAttendee()->getParticipantType() === Participant::USER_SELF_JOINED;
} catch (ParticipantNotFoundException $e) {
$requirePassword = true;
}