getSonetPerms
array public \Bitrix\Blog\Item\Post::getById( int $id, array $params );
Non-static method for getting access permissions from social network module for blog post user.
Parameters
Parameter | Description | Version |
---|---|---|
$params | Auxiliary parameters. Supports key USER_ID - ID (by default - current user ID). |
Examples
$post = \Bitrix\Blog\Item\Post::getById(15); $permsResult = $post->getSonetPerms();
Returned value: array containing two keys:
PERM - the access permission level value (see class \Bitrix\Blog\Item\Permissions)
READ_BY_OSG - true/false - defines that access to read a post is granted due to the factor that one social network groups to which the post is sent - is open for reading.
© «Bitrix24», 2001-2024