Update Post.php

This commit is contained in:
lalka2016 2023-09-16 19:48:11 +03:00
parent 06f324f98c
commit d87ea1e684

View file

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