diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index 3a7605bb..42e184ec 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -46,7 +46,7 @@ final class WallPresenter extends OpenVKPresenter function renderWall(int $user, bool $embedded = false): void { $owner = ($user < 0 ? (new Clubs) : (new Users))->get(abs($user)); - if ($owner->isBanned() || !$owner->canBeViewedBy($this->user->identity)) + if ($owner->isBanned() || $owner->isDeleted() || !$owner->canBeViewedBy($this->user->identity)) $this->flashFail("err", tr("error"), tr("forbidden")); if(is_null($this->user)) {