summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-07 17:16:52 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-07 17:16:52 -0800
commitad83998f10952c3841b4b999b5a340ca26d329f7 (patch)
tree2a5f60beb9a8e5a7e7e94968c11e3d8a89605391
parentd014d43c6860e3aaf46a5afba0ea3dffd54f630d (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.
-rw-r--r--lib/grouplist.php6
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();