From 3e1148f0714b60951fb63a294b2fa4cf33958601 Mon Sep 17 00:00:00 2001 From: axman Date: Mon, 29 Mar 2021 10:02:26 -0700 Subject: [PATCH] for Unicon usage --- Controller/GrouperGroupsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index b9cd4dd..502c271 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -464,18 +464,18 @@ function isAuthorized() { $roles = $this->Role->calculateCMRoles(); //This call just pulls in user ID from comanage but not Grouper, need the Grouper Id for API calls. - /* + if ($this->Session->check('Auth.User.username')) { $this->userId = $this->Session->read('Auth.User.username'); - }*/ - + } +/* if ($this->Session->check('Plugin.Grouper.UserId')) { $this->userId = $this->Session->read('Plugin.Grouper.UserId'); } else { $this->userId = $this->GrouperGroup->getGrouperUserId(); $this->Session->write('Plugin.Grouper.UserId', $this->userId); } - +*/ // Determine what operations this user can perform // Construct the permission set for this user, which will also be passed to the view.