forked from science-ation/science-ation
Some user data that was expected in the session was not getting updated
on the user load. Fixed.
This commit is contained in:
parent
5f289a6761
commit
e7fac7406f
4
api.php
4
api.php
@ -373,6 +373,10 @@ switch($request[0]) {
|
||||
$u = user_load(null, $accounts_id);
|
||||
|
||||
if(is_array($u)){
|
||||
$_SESSION['users_id'] = $u['id'];
|
||||
foreach($u['roles'] as $role){
|
||||
$_SESSION['roles'][] = $role;
|
||||
}
|
||||
$p = getProject($u['id']);
|
||||
if(is_array($p)) {
|
||||
$_SESSION['registration_id'] = $p['registrations_id'];
|
||||
|
Loading…
Reference in New Issue
Block a user