GetGroupPerms
string CBlogUserGroup::GetGroupPerms( int ID, int blogID, int postID = 0, string permsType = BLOG_PERMS_POST );
The method returns the group ID access permission level. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Blog user group ID. |
blogID | Blog ID. |
postID | Blog post ID. Optional. By default it is 0 - by default, access permission level, specified in the blog settings is returned. |
permsType | Type of access. Possible values:
|
Returned value
The method returns access permission level for blog user group for blog posts and comments.
See Also
Examples of use
<? $perms = CBlogUserGroup::GetGroupPerms(3, 1); echo "User group with ID=3 has the following access permission for posts at the blog 1: ".$perms; ?>
© «Bitrix24», 2001-2024