projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18a039b
)
Admins of main site are admins for all sites that use groupex authentication
author
Pascal Corpet
<pascal.corpet@m4x.org>
Fri, 11 Apr 2008 22:05:54 +0000
(
00:05
+0200)
committer
Pascal Corpet
<pascal.corpet@m4x.org>
Fri, 11 Apr 2008 22:05:54 +0000
(
00:05
+0200)
modules/auth/auth.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/auth/auth.inc.php
b/modules/auth/auth.inc.php
index
f87dd03
..
83921e1
100644
(file)
--- 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';