Documentation

GetBlogUserCommentPerms

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

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

Method parameters

ParameterDescription
ID Blog ID.
userID User ID.

Returned value

The method returns the user access permission to post blog comments.

See Also

Examples of use

<?
$perms = CBlog::GetBlogUserCommentPerms(1, $USER->GetID());
echo "You have the following access permission right to comment the blog: ".$perms;
?>


© «Bitrix24», 2001-2024