summaryrefslogtreecommitdiff
path: root/actions/groupmembers.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-08 15:48:52 -0800
committerBrion Vibber <brion@pobox.com>2010-02-08 15:48:52 -0800
commitb2e8d8407cc7f1abb5e8767cd3403ac356775eaa (patch)
tree5cfaed5f1f21a697e147b41695c7e8c5282324a3 /actions/groupmembers.php
parent3833dc8c1f3f9ba5e3b12bf2715e4a4fb3adabf1 (diff)
parent4e6f587f868d71f08c618d0dedf6ddf0331619c2 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
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,