From 293993653441ef367880a590035a02df9a84854c Mon Sep 17 00:00:00 2001 From: lalka2018 <99399973+lalka2016@users.noreply.github.com> Date: Sat, 16 Sep 2023 19:51:36 +0300 Subject: [PATCH] Update Post.php (#983) --- Web/Models/Entities/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Entities/Post.php b/Web/Models/Entities/Post.php index 8c38c567..6d0fe8cf 100644 --- a/Web/Models/Entities/Post.php +++ b/Web/Models/Entities/Post.php @@ -255,7 +255,7 @@ class Post extends Postable return false; if($this->getTargetWall() > 0) - return $this->getPublicationTime()->timestamp() + WEEK > time(); + return $this->getPublicationTime()->timestamp() + WEEK > time() && $user->getId() == $this->getOwner(false)->getId(); return $user->getId() == $this->getOwner(false)->getId(); }