From: Pascal Corpet Date: Fri, 11 Apr 2008 22:05:54 +0000 (+0200) Subject: Admins of main site are admins for all sites that use groupex authentication X-Git-Tag: core/1.0.0~246^2~3 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4d97c734d9d513ea591fa5c2b2227d49f5abe19b;hp=defff1aaedb963d39c678b10abb607067f55ede1;p=platal.git Admins of main site are admins for all sites that use groupex authentication --- diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index f87dd03..83921e1 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -60,6 +60,9 @@ function gpex_make($chlg, $privkey, $datafields, $charset) WHERE uid = {?} AND diminutif = {?}", S::v('uid'), $_GET['group']); $perms = $res->fetchOneCell(); + if (Session::has_perms()) { + $perms = 'admin'; + } } else { // if no group asked, return main rights $perms = Session::has_perms()?'admin':'membre';