mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fixup "Groups: Allow coadmins to delete comments on posts"
This commit is contained in:
parent
587fcaaa1d
commit
bb055f90aa
1 changed files with 1 additions and 1 deletions
|
@ -44,6 +44,6 @@ class Comment extends Post
|
|||
{
|
||||
return $this->getOwner()->getId() == $user->getId() ||
|
||||
$this->getTarget()->getOwner()->getId() == $user->getId() ||
|
||||
$this->getTarget() instanceof Post && $this->getTarget()->getTargetWall() < 0;
|
||||
$this->getTarget() instanceof Post && $this->getTarget()->getTargetWall() < 0 && (new Clubs)->get(abs($this->getTarget()->getTargetWall()))->canBeModifiedBy($user);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue