Skip to content

Commit

Permalink
Merge pull request #1765 from nextcloud/prevent-federated-user-promotion
Browse files Browse the repository at this point in the history
Remove option to promote a federated user to moderator
  • Loading branch information
SystemKeeper authored Aug 17, 2024
2 parents 698562a + 33e3927 commit 02cac77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NextcloudTalk/NCRoomParticipants.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ - (BOOL)canBePromoted
{
// In Talk 5 guest moderators were introduced
if ([[NCDatabaseManager sharedInstance] serverHasTalkCapability:kCapabilityInviteGroupsAndMails]) {
return !self.canModerate && !self.isGroup && !self.isCircle && !self.isBridgeBotUser;
BOOL allowedActorType = [_actorType isEqualToString:NCAttendeeTypeUser] || [_actorType isEqualToString:NCAttendeeTypeGuest] || [_actorType isEqualToString:NCAttendeeTypeEmail];
return !self.canModerate && allowedActorType;
}
return _participantType == kNCParticipantTypeUser;
}
Expand Down

0 comments on commit 02cac77

Please sign in to comment.