CMSDeskPageCheckGroupPermissions Method |
Check whether user is group administrator or has manage permission. If autoRedirect is omitted,
a redirection to Access denied page is done if the user has insufficient permissions.
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 12.0.0
Syntax public static bool CheckGroupPermissions(
int groupId,
string permissionName,
bool autoRedirect = true
)
Parameters
- groupId
- Type: SystemInt32
Community group ID - permissionName
- Type: SystemString
Permission name - autoRedirect (Optional)
- Type: SystemBoolean
Indicates whether user should be redirected to the access denied page
Return Value
Type:
BooleanSee Also