CForumNew::CanUserDeleteForum
bool CanUserDeleteForum( int ID, array arUserGroups, int iUserID );
The method CanUserDeleteForum thoroughly checks whether a specified user who is a member of a specified group can delete a specified forum.
Parameters
Parameter | Description |
---|---|
ID | The ID of the forum that the user iUserID wants to delete. |
arUserGroups |
Array of groups whose member this user is. Array of groups of the
current user is returned by $USER->GetUserGroupArray() .
|
iUserID |
The user ID. The current user ID is returned by $USER->GetID() .
|
Return Values
Returns true if the user has all the permissions required to delete a forum, or false otherwise.See Also
© «Bitrix24», 2001-2024