- 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())) {