summaryrefslogtreecommitdiff
path: root/actions/groupmembers.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-06 11:36:59 +0100
committerEvan Prodromou <evan@status.net>2010-02-06 11:36:59 +0100
commit5fdcd88176010a72b6a157170784a8aad7bf4131 (patch)
treeb413d0f615ba48a0814a4c76365c831be8af0782 /actions/groupmembers.php
parent823939ca84bd19ced394771d3f08b7c72a9dec84 (diff)
Moderator can make users admins of a group
Diffstat (limited to 'actions/groupmembers.php')
-rw-r--r--actions/groupmembers.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/groupmembers.php b/actions/groupmembers.php
index 0f47c268d..f16e972a4 100644
--- a/actions/groupmembers.php
+++ b/actions/groupmembers.php
@@ -192,7 +192,9 @@ class GroupMemberListItem extends ProfileListItem
{
$user = common_current_user();
- if (!empty($user) && $user->id != $this->profile->id && $user->isAdmin($this->group) &&
+ if (!empty($user) &&
+ $user->id != $this->profile->id &&
+ ($user->isAdmin($this->group) || $user->hasRight(Right::MAKEGROUPADMIN)) &&
!$this->profile->isAdmin($this->group)) {
$this->out->elementStart('li', 'entity_make_admin');
$maf = new MakeAdminForm($this->out, $this->profile, $this->group,