mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fix permissions reporting (can_create_topic, can_post) for clubs in vk api
This commit is contained in:
parent
2e76ca16df
commit
070ea16536
1 changed files with 2 additions and 2 deletions
|
@ -382,9 +382,9 @@ class Club extends RowModel
|
|||
$res->photo_100 = $this->getAvatarUrl("tiny");
|
||||
$res->photo_200 = $this->getAvatarUrl("normal");
|
||||
|
||||
$res->can_create_topic = $this->canBeModifiedBy($user) ? 1 : $this->isEveryoneCanCreateTopics() ? 1 : 0;
|
||||
$res->can_create_topic = $this->canBeModifiedBy($user) ? 1 : ($this->isEveryoneCanCreateTopics() ? 1 : 0);
|
||||
|
||||
$res->can_post = $this->canBeModifiedBy($user) ? 1 : $this->canPost() ? 1 : 0;
|
||||
$res->can_post = $this->canBeModifiedBy($user) ? 1 : ($this->canPost() ? 1 : 0);
|
||||
|
||||
return (object) $res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue