Skip to content

Commit

Permalink
fix: correct userGroups intersection check for federation access
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Soni <[email protected]>
  • Loading branch information
sanskar-soni-9 authored and backportbot[bot] committed Aug 21, 2024
1 parent 9ada74c commit d2c1414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function isFederationEnabledForUserId(IUser $user): bool {
}

$userGroups = $this->groupManager->getUserGroupIds($user);
return empty(array_intersect($allowedGroups, $userGroups));
return !empty(array_intersect($allowedGroups, $userGroups));
}

public function isBreakoutRoomsEnabled(): bool {
Expand Down

0 comments on commit d2c1414

Please sign in to comment.