FIX_ROLE_ISSUE

This commit is contained in:
velz 2026-01-27 10:41:22 +05:30
parent f4c4551dd8
commit 838e2bbdda

View File

@ -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;
}
}