mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +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() ||
|
return $this->getOwner()->getId() == $user->getId() ||
|
||||||
$this->getTarget()->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