summaryrefslogtreecommitdiff
path: root/lib/grouplist.php
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2009-03-08 01:11:22 +0000
committerCiaranG <ciaran@ciarang.com>2009-03-08 01:11:22 +0000
commit61940e37ff89710628eff1a4ad6db8df16142cec (patch)
treed56214cb07f443a26c46aa25546a951d2162f972 /lib/grouplist.php
parenta4091c878a923d7a0919098665906225ebeeb136 (diff)
parentf9a7ae27b8879569a3f0eff478cbd3b650bdca28 (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'lib/grouplist.php')
-rw-r--r--lib/grouplist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/grouplist.php b/lib/grouplist.php
index 1b8547499..8e2637fec 100644
--- a/lib/grouplist.php
+++ b/lib/grouplist.php
@@ -164,8 +164,10 @@ class GroupList extends Widget
# XXX: special-case for user looking at own
# subscriptions page
if ($user->isMember($this->group)) {
- $lf = new LeaveForm($this->out, $this->group);
- $lf->show();
+ if (!$user->isAdmin($this->group)) {
+ $lf = new LeaveForm($this->out, $this->group);
+ $lf->show();
+ }
} else {
$jf = new JoinForm($this->out, $this->group);
$jf->show();