From: Florent Bruneau Date: Thu, 14 Oct 2010 11:26:06 +0000 (+0200) Subject: Permissions where not properly initialized leading to strange behaviors X-Git-Tag: xorg/1.0.1~51 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=90c33700ca33738b01195af5effb6b9d62bb08e5;p=platal.git Permissions where not properly initialized leading to strange behaviors and PHP warning on the first page loaded by the user. Signed-off-by: Florent Bruneau --- diff --git a/classes/xorgsession.php b/classes/xorgsession.php index db03eac..12d06e2 100644 --- a/classes/xorgsession.php +++ b/classes/xorgsession.php @@ -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()) {