From 1be5bb3216834b4dd11efe44597f789a48f4c7db Mon Sep 17 00:00:00 2001 From: axman Date: Tue, 3 Aug 2021 14:22:48 -0700 Subject: [PATCH] taking out I2 login support for local dev testing --- Controller/GrouperGroupsController.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 9a06dcf..0134442 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -568,23 +568,23 @@ function isAuthorized() { $roles = $this->Role->calculateCMRoles(); //TODO - This is needed for my dev enviro since I do not log in via I2 IdP - /* + if ($this->Session->check('Auth.User.username')) { $this->userId = $this->Session->read('Auth.User.username'); } - */ + /* * TODO - Need to make the following code configurable in getting the user ID. In this case the code is * specific to the needs of I2. */ - - if ($this->Session->check('Plugin.Grouper.UserId')) { - $this->userId = $this->Session->read('Plugin.Grouper.UserId'); - } else { - $this->userId = $this->getUserId($this->Session->read('Auth.User.co_person_id')); - $this->Session->write('Plugin.Grouper.UserId', $this->userId); - } +// +// if ($this->Session->check('Plugin.Grouper.UserId')) { +// $this->userId = $this->Session->read('Plugin.Grouper.UserId'); +// } else { +// $this->userId = $this->getUserId($this->Session->read('Auth.User.co_person_id')); +// $this->Session->write('Plugin.Grouper.UserId', $this->userId); +// } // Determine what operations this user can perform