summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/leavegroup.php6
-rw-r--r--actions/showgroup.php6
2 files changed, 2 insertions, 10 deletions
diff --git a/actions/leavegroup.php b/actions/leavegroup.php
index 1d85aa3d5..eb30d0e50 100644
--- a/actions/leavegroup.php
+++ b/actions/leavegroup.php
@@ -96,12 +96,6 @@ class LeavegroupAction extends Action
return false;
}
- if ($cur->isAdmin($this->group)) {
- $this->clientError(_('You may not leave a group while you are its administrator.'), 403);
- return false;
-
- }
-
return true;
}
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();