# XXX: special-case for user looking at own
# subscriptions page
if ($user->isMember($this->group)) {
- if (!$user->isAdmin($this->group)) {
- $lf = new LeaveForm($this->out, $this->group);
- $lf->show();
- }
- } else {
+ $lf = new LeaveForm($this->out, $this->group);
+ $lf->show();
+ } else if (!Group_block::isBlocked($this->group, $user->getProfile())) {
$jf = new JoinForm($this->out, $this->group);
$jf->show();
}