Some user data that was expected in the session was not getting updated

on the user load.  Fixed.
This commit is contained in:
jacob 2011-03-02 15:57:38 +00:00
parent 5f289a6761
commit e7fac7406f

View File

@ -373,6 +373,10 @@ switch($request[0]) {
$u = user_load(null, $accounts_id); $u = user_load(null, $accounts_id);
if(is_array($u)){ if(is_array($u)){
$_SESSION['users_id'] = $u['id'];
foreach($u['roles'] as $role){
$_SESSION['roles'][] = $role;
}
$p = getProject($u['id']); $p = getProject($u['id']);
if(is_array($p)) { if(is_array($p)) {
$_SESSION['registration_id'] = $p['registrations_id']; $_SESSION['registration_id'] = $p['registrations_id'];