forked from science-ation/science-ation
Oops its user_load not users_load
This commit is contained in:
parent
f225787e39
commit
759ecc0a1a
@ -908,7 +908,7 @@ function try_login($user, $pass)
|
|||||||
}
|
}
|
||||||
function updateSessionRoles($u=null) {
|
function updateSessionRoles($u=null) {
|
||||||
if(!$u)
|
if(!$u)
|
||||||
$u=users_load($_SESSION['user_id']);
|
$u=user_load($_SESSION['user_id']);
|
||||||
|
|
||||||
$_SESSION['roles']=array();
|
$_SESSION['roles']=array();
|
||||||
foreach($u['roles'] AS $r=>$rd) {
|
foreach($u['roles'] AS $r=>$rd) {
|
||||||
|
Loading…
Reference in New Issue
Block a user