CanUserManageBlog
bool CBlog::CanUserManageBlog( int ID, int userID );
The method verifies, whether the userID can manage the blog ID. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Blog ID. |
userID | User ID. Optional parameter. |
Returned value
The method returns true if the user can manage the blog, otherwise returns false.See Also
Examples of use
<? if(CBlog::CanUserManageBlog(1, $USER->GetID()) echo "You can manage the blog."; else echo "You cannot manage the blog."; ?>
© «Bitrix24», 2001-2024