Update lib/GroupManager.php

Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>

Co-authored-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Jonathan Treffler 2021-09-29 11:55:03 +02:00 committed by Jonathan Treffler
parent cbd0d18c02
commit 4f3a5c72e9

View file

@ -72,7 +72,7 @@ class GroupManager
return $groupsToRemove;
}
private function getGroupsToAdd($samlGroups, $assignedGroupIds): array {
private function getGroupsToAdd(array $samlGroups, array $assignedGroupIds): array {
$groupsToAdd = [];
foreach($samlGroups as $group) {
// if user is not assigend to the group or the provided group has a non SAML backend