Permissions where not properly initialized leading to strange behaviors
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 14 Oct 2010 11:26:06 +0000 (13:26 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 14 Oct 2010 11:26:06 +0000 (13:26 +0200)
and PHP warning on the first page loaded by the user.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xorgsession.php

index db03eac..12d06e2 100644 (file)
@@ -209,6 +209,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']);
 
         // Starts the session's logger, and sets up the permanent cookie.
         if (S::suid()) {