Add the 'user' perm to X.net for users with the 'group' permission.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 23 Aug 2011 22:55:48 +0000 (00:55 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Thu, 8 Sep 2011 23:14:46 +0000 (01:14 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/xnetsession.php

index 27ed4d8..0612032 100644 (file)
@@ -118,6 +118,7 @@ class XnetSession extends XorgSession
         if (!$user->checkPerms('groups')) {
             return false;
         }
+        S::v('perms')->addFlag(PERMS_USER);
         if ($level == AUTH_SUID) {
             S::set('auth', AUTH_MDP);
         }