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'];