summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-12-03 14:41:04 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-12-03 14:41:04 +0100
commitf8cc712e2ad522d0bd56b9ba3983cd42abf664ad (patch)
treef05652b1c134709880c8bde9b136f25055fffeb6 /inc/actions.php
parent4765d61c46935bc95f8f28459004374dfa77797f (diff)
downloadrpg-f8cc712e2ad522d0bd56b9ba3983cd42abf664ad.tar.gz
rpg-f8cc712e2ad522d0bd56b9ba3983cd42abf664ad.tar.bz2
manager user/group
This patch adds support for a manager option as suggested in http://www.freelists.org/archives/dokuwiki/11-2006/msg00314.html darcs-hash:20061203134104-7ad00-72ff6422bbb4f79be325c7e77255e1eee32d0f6b.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 8d7479d0e..b37106ec5 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -208,7 +208,13 @@ function act_permcheck($act){
}elseif($act == 'resendpwd'){
$permneed = AUTH_NONE;
}elseif($act == 'admin'){
- $permneed = AUTH_ADMIN;
+ if($INFO['ismanager']){
+ // if the manager has the needed permissions for a certain admin
+ // action is checked later
+ $permneed = AUTH_READ;
+ }else{
+ $permneed = AUTH_ADMIN;
+ }
}else{
$permneed = AUTH_READ;
}