mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
Update Post.php
This commit is contained in:
parent
06f324f98c
commit
d87ea1e684
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class Post extends Postable
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if($this->getTargetWall() > 0)
|
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();
|
return $user->getId() == $this->getOwner(false)->getId();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue