summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/grouplist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/grouplist.php b/lib/grouplist.php
index 4c448e250..8f3b0abd8 100644
--- a/lib/grouplist.php
+++ b/lib/grouplist.php
@@ -164,8 +164,10 @@ class GroupList extends Widget
# XXX: special-case for user looking at own
# subscriptions page
if ($user->isMember($this->group)) {
- $lf = new LeaveForm($this->out, $this->group);
- $lf->show();
+ if (!$user->isAdmin($this->group)) {
+ $lf = new LeaveForm($this->out, $this->group);
+ $lf->show();
+ }
} else {
$jf = new JoinForm($this->out, $this->group);
$jf->show();