Documentation

GetBlogUserCommentPerms

string
CBlogPost::GetBlogUserCommentPerms(
 int ID,
 int userID
);

The method returns userID access permission to post comments to a blog post with ID. Non-static method.

Method parameters

ParameterDescription
ID Blog post ID.
userID User ID.

Returned value

The method returns user access permission to post comments for a blog post.

See Also

Examples of use

<?
$perms = CBlogPost::GetBlogUserCommentPerms(1, $USER->GetID());
echo "You have the following access permission for blog post comments: ".$perms;
?>


© «Bitrix24», 2001-2024
Up