checkUserReadAccess
boolean public static \Bitrix\Socialnetwork\Ui\Preview\Post::checkUserReadAccess( array $params, integer $userId );
Method returns 'true', when current user has read access to blog post. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$params | Expected keys: postId, userId. | |
$userId | Current user ID. |
Example
© «Bitrix24», 2001-2024