From 4d97c734d9d513ea591fa5c2b2227d49f5abe19b Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sat, 12 Apr 2008 00:05:54 +0200 Subject: [PATCH 1/1] Admins of main site are admins for all sites that use groupex authentication --- modules/auth/auth.inc.php | 3 +++ 1 file changed, 3 insertions(+) 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'; -- 2.1.4