Merge branch 'dev' of bitbucket.org:jubilian/nhance-enrollment into dev
This commit is contained in:
commit
88b54a5a2f
@ -118,7 +118,8 @@ if (!function_exists('check_role')) {
|
||||
{
|
||||
// $ci =& get_instance();
|
||||
$session = \Config\Services::session();
|
||||
return $session->get('role');
|
||||
return $role_id = isset(get_session_userdata()->role) ? get_session_userdata()->role : null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user