ForumViewerCheckPermission Method (String, SecurityAccessEnum, Int32, Int32) |
Returns true if and only if currentuser is authorized for the specified action.
Namespace: CMS.ForumsAssembly: CMS.Forums (in CMS.Forums.dll) Version: 8.2.23
Syntax public static bool CheckPermission(
string permissionName,
SecurityAccessEnum permissionScope,
int forumGroupId,
int forumId
)
Parameters
- permissionName
- Type: SystemString
Name of the permission to check - permissionScope
- Type: CMS.HelpersSecurityAccessEnum
Permission to check - forumGroupId
- Type: SystemInt32
ID of the Forum group of the forum - forumId
- Type: SystemInt32
Forum id
Return Value
Type:
BooleanSee Also