summaryrefslogtreecommitdiffstats
path: root/lib/Collaboration
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/Collaboration
parentca16dcab45e95d3ebc93519e7a87d158da2f5ca4 (diff)
Fix some more participant handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Collaboration')
-rw-r--r--lib/Collaboration/Resources/ConversationProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Collaboration/Resources/ConversationProvider.php b/lib/Collaboration/Resources/ConversationProvider.php
index fc1ffbe05..528cbf3fd 100644
--- a/lib/Collaboration/Resources/ConversationProvider.php
+++ b/lib/Collaboration/Resources/ConversationProvider.php
@@ -94,7 +94,7 @@ class ConversationProvider implements IProvider {
// Logged in users need to have a regular participant,
// before they can do anything with the room.
$participant = $room->getParticipant($userId);
- return $participant->getParticipantType() !== Participant::USER_SELF_JOINED;
+ return $participant->getAttendee()->getParticipantType() !== Participant::USER_SELF_JOINED;
} catch (RoomNotFoundException $e) {
throw new ResourceException('Conversation not found');
} catch (ParticipantNotFoundException $e) {