From c9f58dc0e19dde4de4fae60ca418013ffa2a8520 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 18 Sep 2024 17:42:57 +0200 Subject: [PATCH] Update lib/GroupManager.php Co-authored-by: Christoph Wurst Signed-off-by: Arthur Schiwon --- lib/GroupManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GroupManager.php b/lib/GroupManager.php index c530c5ed..28bd652f 100644 --- a/lib/GroupManager.php +++ b/lib/GroupManager.php @@ -70,7 +70,7 @@ public function __construct( private function getGroupsToRemove(array $samlGroupNames, array $assignedGroups): array { $groupsToRemove = []; foreach ($assignedGroups as $group) { - if (in_array($group->getGID(), $samlGroupNames)) { + if (in_array($group->getGID(), $samlGroupNames, true)) { continue; } // if group is not supplied by SAML and group has SAML backend