Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: internet2/comanage-grouper-widget
base: main
Choose a base ref
...
head repository: internet2/comanage-grouper-widget
compare: March2023
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 23, 2023

  1. updating for I2 usage

    Axel Stohn authored and Axel Stohn committed Mar 23, 2023
    Copy the full SHA
    1885faf View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 Controller/GrouperGroupsController.php
10 changes: 5 additions & 5 deletions Controller/GrouperGroupsController.php
@@ -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);

@@ -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.