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(); }