Click or drag to resize
ForumViewerCheckPermission Method (String, SecurityAccessEnum, Int32, Int32, UserInfo)
Returns true if and only if specified user is authorized for the specified action.

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 8.2.23
Syntax
C#
public static bool CheckPermission(
	string permissionName,
	SecurityAccessEnum permissionScope,
	int forumGroupId,
	int forumId,
	UserInfo user
)

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
user
Type: CMS.MembershipUserInfo
User info

Return Value

Type: Boolean
See Also