X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgrouplist.php;h=8e2637fec9626de9615f6243b2e3cba5dd19acee;hb=d014d43c6860e3aaf46a5afba0ea3dffd54f630d;hp=1b854749982198e68f89de742d2c1fd306e3ce1c;hpb=c21d61840dcacb8dac3f511decef61f2fb3a80d9;p=quix0rs-gnu-social.git diff --git a/lib/grouplist.php b/lib/grouplist.php index 1b85474998..8e2637fec9 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();