Skip to content

Commit

Permalink
pass userManagerId to getUserGroups API Call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Mar 13, 2024
1 parent 0f2c895 commit 6af044c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/GrouperGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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;
Expand Down

0 comments on commit 6af044c

Please sign in to comment.