From: Evan Prodromou Date: Sun, 8 Mar 2009 01:16:52 +0000 (-0800) Subject: Revert "Remove leave button from grouplist if current user is admin of that group." X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad83998f10952c3841b4b999b5a340ca26d329f7;p=quix0rs-gnu-social.git 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. --- 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();