summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
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();