summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-07 17:47:43 -0800
committerEvan Prodromou <evan@controlyourself.ca>2009-03-07 17:47:43 -0800
commitf66775658c0f231c8bcf9ea310fc8ac0dbf19bfd (patch)
treef3c6d338089fea23b19846bada3fec4a5814ef0e /actions/showgroup.php
parentbea3fca1899dddda8d1c52c16a761dd23c9ce8b8 (diff)
trying to kill the can't-leave-a-group bug
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r--actions/showgroup.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index c20941a35..b6022840b 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -275,10 +275,8 @@ class ShowgroupAction extends Action
$cur = common_current_user();
if ($cur) {
if ($cur->isMember($this->group)) {
- if (!$cur->isAdmin($this->group)) {
- $lf = new LeaveForm($this, $this->group);
- $lf->show();
- }
+ $lf = new LeaveForm($this, $this->group);
+ $lf->show();
} else {
$jf = new JoinForm($this, $this->group);
$jf->show();