diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-01-22 08:01:40 +0000 |
---|---|---|
committer | Robin Millette <millette@plantard.controlezvous.ca> | 2009-01-22 08:01:40 +0000 |
commit | e272adb321fb72043ac7f9a16848ef9386e56571 (patch) | |
tree | b6d5c3196597af65d2a86b80389d0510d7514658 /actions/showgroup.php | |
parent | c20d0612bf51cff523f55b12095e7213be94355e (diff) |
fixed a few bugs and logic problems in groups
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r-- | actions/showgroup.php | 6 |
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(); |