Documentation

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

ParameterDescriptionVersion
$paramsExpected keys: postId, userId.
$userIdCurrent user ID.

Example



© «Bitrix24», 2001-2024