Skip to content

Commit

Permalink
Fixed rendering of person picker
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Mar 29, 2023
1 parent 36dc382 commit 9277b56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Controller/GrouperGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion webroot/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
$("#addUserbutton").prop('disabled', false).focus();
return false;
},
});
}).autocomplete( "instance" )._renderItem = formatCoPersonAutoselectItem;
},
template: /*html*/`
<div class="input-group">
Expand Down

0 comments on commit 9277b56

Please sign in to comment.