From 6af044c35185a212485486114111717b87a151ad Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 13 Mar 2024 20:34:17 +0200 Subject: [PATCH] pass userManagerId to getUserGroups API Call --- Model/GrouperGroup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/GrouperGroup.php b/Model/GrouperGroup.php index e90fb0b..1468b07 100644 --- a/Model/GrouperGroup.php +++ b/Model/GrouperGroup.php @@ -331,7 +331,7 @@ public function getOwnedGroups(string $userId, array $cfg): array * - the User(me) has a role of owner/admin * - the User(member User) is a member * - * @param string $userId + * @param string $managerId * @param string $memberId * @param array $cfg * @@ -358,7 +358,7 @@ public function getManagedUsers(string $managerId, string $memberId, array $cfg) try { // Groups the user is a member of - $membersGroup = $this->grouperAPI->getUserGroups($memberId, $memberId); + $membersGroup = $this->grouperAPI->getUserGroups($managerId, $memberId); } catch (Exception $e) { CakeLog::write('error', __METHOD__ . ': An error occurred'); throw $e;