diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-07 17:16:52 -0800 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-07 17:16:52 -0800 |
commit | ad83998f10952c3841b4b999b5a340ca26d329f7 (patch) | |
tree | 2a5f60beb9a8e5a7e7e94968c11e3d8a89605391 /lib | |
parent | d014d43c6860e3aaf46a5afba0ea3dffd54f630d (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/grouplist.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/grouplist.php b/lib/grouplist.php index 8e2637fec..1b8547499 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(); |