X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fauth%2Fauth.inc.php;h=a1a562fd07e2ace3f4d3e51ce4dbf5fd1e21e115;hb=c700d16b2402b1d246383097f6f22f716e294eaf;hp=83921e1da9285ed62fb7dfa1bd7583d0e7870981;hpb=5d734a72d2470e6c4130ba15fcd15a57a8919cf3;p=platal.git diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index 83921e1..a1a562f 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -60,12 +60,12 @@ function gpex_make($chlg, $privkey, $datafields, $charset) WHERE uid = {?} AND diminutif = {?}", S::v('uid'), $_GET['group']); $perms = $res->fetchOneCell(); - if (Session::has_perms()) { + 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); }