Admins of main site are admins for all sites that use groupex authentication
authorPascal Corpet <pascal.corpet@m4x.org>
Fri, 11 Apr 2008 22:05:54 +0000 (00:05 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Fri, 11 Apr 2008 22:09:52 +0000 (00:09 +0200)
modules/auth/auth.inc.php

index f87dd03..83921e1 100644 (file)
@@ -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';