Better fix for flagset+perms issue.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 14 Oct 2010 12:25:17 +0000 (14:25 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 14 Oct 2010 12:25:17 +0000 (14:25 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xorgsession.php

index 12d06e2..f46107c 100644 (file)
@@ -208,8 +208,7 @@ class XorgSession extends PlSession
         }
 
         // Loads uid and hruid into the session for developement conveniance.
-        $_SESSION = array_merge($_SESSION, array('uid' => $user->id(), 'hruid' => $user->hruid, 'token' => $user->token));
-        unset($_SESSION['perms']);
+        $_SESSION = array_merge($_SESSION, array('uid' => $user->id(), 'hruid' => $user->hruid, 'token' => $user->token, 'user' => $user));
 
         // Starts the session's logger, and sets up the permanent cookie.
         if (S::suid()) {