X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth%2Fauth.inc.php;h=a1a562fd07e2ace3f4d3e51ce4dbf5fd1e21e115;hb=c700d16b2402b1d246383097f6f22f716e294eaf;hp=9fd9c6946b3a5250e201ed904d253f42a1152568;hpb=15dec88f8111e55bd73d4a6684eeaf204a9d5753;p=platal.git diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 9fd9c69..a1a562f 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -1,6 +1,6 @@ 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); }