From 90c33700ca33738b01195af5effb6b9d62bb08e5 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 14 Oct 2010 13:26:06 +0200 Subject: [PATCH] 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 --- classes/xorgsession.php | 1 + 1 file changed, 1 insertion(+) 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()) { -- 2.1.4