diff options
author | Guy Brand <gb@isis.u-strasbg.fr> | 2008-02-12 22:32:22 +0100 |
---|---|---|
committer | Guy Brand <gb@isis.u-strasbg.fr> | 2008-02-12 22:32:22 +0100 |
commit | 7adba38c3fe8ae35c4c79aa125b04d4427f13a72 (patch) | |
tree | cd2e19071f36f5c4e3bf38744a30e20161d50fcc /inc | |
parent | 02f50ae7d656d76fc143e036f2276130871d8a27 (diff) | |
download | rpg-7adba38c3fe8ae35c4c79aa125b04d4427f13a72.tar.gz rpg-7adba38c3fe8ae35c4c79aa125b04d4427f13a72.tar.bz2 |
Have aclcheck use auth_isadmin
darcs-hash:20080212213222-19e2d-d8a2261fa83d6482afe213ffb41611ae723811de.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index c44e2457d..027e9c685 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -349,7 +349,7 @@ function auth_aclcheck($id,$user,$groups){ $user = auth_nameencode($user); //if user is superuser return 255 (acl_admin) - if(auth_nameencode($conf['superuser']) == $user) { return AUTH_ADMIN; } + if(auth_isadmin($user,$groups)) { return AUTH_ADMIN; } //make sure groups is an array if(!is_array($groups)) $groups = array(); @@ -360,7 +360,7 @@ function auth_aclcheck($id,$user,$groups){ $groups[$i] = '@'.auth_nameencode($groups[$i]); } //if user is in superuser group return 255 (acl_admin) - if(in_array(auth_nameencode($conf['superuser'],true), $groups)) { return AUTH_ADMIN; } + if(auth_isadmin($user,$groups)) { return AUTH_ADMIN; } $ns = getNS($id); $perm = -1; |