mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Update Post.php (#983)
This commit is contained in:
parent
06f324f98c
commit
2939936534
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue