Merge branch 'platal-0.9.16'
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Jun 2008 10:28:16 +0000 (12:28 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Jun 2008 10:28:16 +0000 (12:28 +0200)
Conflicts:

modules/auth/auth.inc.php

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
1  2 
modules/auth/auth.inc.php

@@@ -62,12 -62,9 +62,9 @@@ function gpex_make($chlg, $privkey, $da
                                      WHERE  uid = {?} AND diminutif = {?}",
                                    S::v('uid'), $_GET['group']);
                  $perms = $res->fetchOneCell();
-                 if (S::has_perms()) {
-                     $perms = 'admin';
-                 }
              } else {
                  // if no group asked, return main rights
 -                $perms = Session::has_perms()?'admin':'membre';
 +                $perms = S::has_perms() ? 'admin' : 'membre';
              }
              $params .= gpex_prepare_param($val, $perms, $tohash, $charset);
          }