summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-01-22 08:01:40 +0000
committerRobin Millette <millette@plantard.controlezvous.ca>2009-01-22 08:01:40 +0000
commite272adb321fb72043ac7f9a16848ef9386e56571 (patch)
treeb6d5c3196597af65d2a86b80389d0510d7514658 /actions/showgroup.php
parentc20d0612bf51cff523f55b12095e7213be94355e (diff)
fixed a few bugs and logic problems in groups
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r--actions/showgroup.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index 1af080c7e..0a499aff9 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -267,8 +267,10 @@ class ShowgroupAction extends Action
$cur = common_current_user();
if ($cur) {
if ($cur->isMember($this->group)) {
- $lf = new LeaveForm($this, $this->group);
- $lf->show();
+ if (!$cur->isAdmin($this->group)) {
+ $lf = new LeaveForm($this, $this->group);
+ $lf->show();
+ }
} else {
$jf = new JoinForm($this, $this->group);
$jf->show();