Skip to content

Commit

Permalink
updating for I2 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Stohn authored and Axel Stohn committed Mar 23, 2023
1 parent 41f2ebe commit 1885faf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,16 +768,16 @@ function isAuthorized()

//TODO - This is needed for my dev enviro since I do not log in via I2 IdP
// BEGIN ===============================================
if ($this->Session->check('Auth.User.username')) {
$this->userId = $this->Session->read('Auth.User.username');
}
// if ($this->Session->check('Auth.User.username')) {
// $this->userId = $this->Session->read('Auth.User.username');
// }
// END ===============================================

//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.
// BEGIN ===============================================

/*$uid=$this->Session->read('Auth.User.co_person_id');
$uid=$this->Session->read('Auth.User.co_person_id');
$username=$this->Session->read('Auth.User.username');
error_log("HUBING ================ " . $username);

Expand Down Expand Up @@ -817,7 +817,7 @@ function isAuthorized()
$this->Session->write('Plugin.Grouper.UserId', $this->userId);
}
// END ===============================================
*/


// Determine what operations this user can perform
// Construct the permission set for this user, which will also be passed to the view.
Expand Down

0 comments on commit 1885faf

Please sign in to comment.