You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similarly, I added a redirect based on the user's group settings at the end of the login() function. Again there is trouble because of the group/group_id issue. Around line 143:
$auth_type => $username,
'username' => $row['username'],
'user_id' => $row['id'],
'group_id' => $row['group_id'],
'logged_in' => TRUE
);
Nowhere in that block is the 'group' being set. It'd be nice to access that instead of passing around the group_id.
Noticed a bug in the libraries/Auth.php file, near line 82:
Reads:
$user_level = $this->CI->session->userdata('group');
When it should be:
$user_level = $this->CI->session->userdata('group_id');
As in the login() function in the same file you set the session variable as 'group_id', not 'group'
The text was updated successfully, but these errors were encountered: