mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
VKAPI: Remove the ability for those who are not group administrators to publish posts on behalf of the group
This commit is contained in:
parent
5d62934053
commit
a81e9ac704
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ final class Wall extends VKAPIRequestHandler
|
|||
}
|
||||
|
||||
$flags = 0;
|
||||
if($from_group == 1)
|
||||
if($from_group == 1 && $wallOwner instanceof Club && $wallOwner->canBeModifiedBy($this->getUser()))
|
||||
$flags |= 0b10000000;
|
||||
if($signed == 1)
|
||||
$flags |= 0b01000000;
|
||||
|
|
Loading…
Reference in a new issue