Skip to content

Commit

Permalink
fix(wall): it's now forbidden to look into deleted user's wall
Browse files Browse the repository at this point in the history
  • Loading branch information
veselcraft committed Jan 22, 2025
1 parent 2d83003 commit 0a3231e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/Presenters/WallPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private function logPostsViewed(array &$posts, int $wall): void
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)) {
Expand Down

0 comments on commit 0a3231e

Please sign in to comment.