summaryrefslogtreecommitdiff
path: root/actions/makeadmin.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/makeadmin.php')
-rw-r--r--actions/makeadmin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/makeadmin.php b/actions/makeadmin.php
index 9ad7d6e7c..f19348648 100644
--- a/actions/makeadmin.php
+++ b/actions/makeadmin.php
@@ -87,7 +87,8 @@ class MakeadminAction extends Action
return false;
}
$user = common_current_user();
- if (!$user->isAdmin($this->group)) {
+ if (!$user->isAdmin($this->group) &&
+ !$user->hasRight(Right::MAKEGROUPADMIN)) {
$this->clientError(_('Only an admin can make another user an admin.'), 401);
return false;
}