From e7fac7406f6fb95b5df520c92124b426052a1363 Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 2 Mar 2011 15:57:38 +0000 Subject: [PATCH] Some user data that was expected in the session was not getting updated on the user load. Fixed. --- api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.php b/api.php index 0cbfab6..81dca1b 100644 --- a/api.php +++ b/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'];