From 5a074c2fba4ded858222b91acfa8422799b17182 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 7 Dec 2008 12:19:55 +0100 Subject: [PATCH] Use symbolic AUTH_SUID to identify SUID auth level. Signed-off-by: Florent Bruneau --- classes/plsession.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/plsession.php b/classes/plsession.php index bc5f508..688f5f5 100644 --- a/classes/plsession.php +++ b/classes/plsession.php @@ -23,6 +23,7 @@ * Only AUTH_PUBLIC is mandatory. The others are defined as useful values, * but can be overwritten by others auth levels definitions. */ +define('AUTH_SUID', -1); define('AUTH_PUBLIC', 0); define('AUTH_COOKIE', 5); define('AUTH_MDP', 10); @@ -184,7 +185,7 @@ abstract class PlSession $_SESSION = array(); $this->fillSession(); S::set('suid', $backup); - if (!$this->startSessionAs($user, -1)) { + if (!$this->startSessionAs($user, AUTH_SUID)) { $this->stopSUID(); return false; } -- 2.1.4