Update Post.php (#983)

This commit is contained in:
lalka2018 2023-09-16 19:51:36 +03:00 committed by GitHub
parent 06f324f98c
commit 2939936534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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