diff --git a/Controller/GrouperGroupsController.php b/Controller/GrouperGroupsController.php index 93a5d58..904f296 100644 --- a/Controller/GrouperGroupsController.php +++ b/Controller/GrouperGroupsController.php @@ -789,15 +789,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'); $username=$this->Session->read('Auth.User.username'); error_log("HUBING ================ " . $username); @@ -838,7 +839,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. diff --git a/webroot/js/autocomplete.js b/webroot/js/autocomplete.js index bc816c7..3625779 100644 --- a/webroot/js/autocomplete.js +++ b/webroot/js/autocomplete.js @@ -32,7 +32,7 @@ export default { $("#addUserbutton").prop('disabled', false).focus(); return false; }, - }); + }).autocomplete( "instance" )._renderItem = formatCoPersonAutoselectItem; }, template: /*html*/`