summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
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;
}