From ad83998f10952c3841b4b999b5a340ca26d329f7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 7 Mar 2009 17:16:52 -0800 Subject: [PATCH] Revert "Remove leave button from grouplist if current user is admin of that group." People shouldn't be forced to be part of a group, even if they are the admin. If a group has no admin, we need to figure out what to do with it, but it's wrong to force anyone to be part of a group. This reverts commit f9a7ae27b8879569a3f0eff478cbd3b650bdca28. --- lib/grouplist.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/grouplist.php b/lib/grouplist.php index 8e2637fec9..1b85474998 100644 --- a/lib/grouplist.php +++ b/lib/grouplist.php @@ -164,10 +164,8 @@ class GroupList extends Widget # XXX: special-case for user looking at own # subscriptions page if ($user->isMember($this->group)) { - if (!$user->isAdmin($this->group)) { - $lf = new LeaveForm($this->out, $this->group); - $lf->show(); - } + $lf = new LeaveForm($this->out, $this->group); + $lf->show(); } else { $jf = new JoinForm($this->out, $this->group); $jf->show(); -- 2.39.5