X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxnetsession.php;fp=classes%2Fxnetsession.php;h=c1c284bd69db7ac5d35022c0303d8dbbe6410834;hb=bdc1e8a02cb1cf18e41f4a8421f056c97932b7f3;hp=f03a838efa093650ca8ad467a654309463e06f2a;hpb=d284f750d006b2988870f96ba55a01bf6144a358;p=platal.git diff --git a/classes/xnetsession.php b/classes/xnetsession.php index f03a838..c1c284b 100644 --- a/classes/xnetsession.php +++ b/classes/xnetsession.php @@ -116,7 +116,7 @@ class XnetSession extends XorgSession S::set('is_admin', $user->is_admin); // Add the 'user' perms to the user. - $this->makePerms($user->perms . ',' . PERMS_USER, $user->is_admin); + $this->makePerms($user->perms, $user->is_admin); S::kill('challenge'); S::kill('loginX'); S::kill('may_update'); @@ -137,7 +137,7 @@ class XnetSession extends XorgSession if (!$this->startSUID($user)) { return false; } - S::set('perms', User::makePerms(PERMS_USER . ",groups")); + S::set('perms', User::makePerms("groups")); return true; }