From 0a3231e8ef78cc3932dd74a1da0fec438413db2a Mon Sep 17 00:00:00 2001 From: veselcraft Date: Wed, 22 Jan 2025 17:10:32 +0300 Subject: [PATCH] fix(wall): it's now forbidden to look into deleted user's wall --- Web/Presenters/WallPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {