Click or drag to resize
ForumInfoProviderIsAuthorizedPerForum Method
Indicates whether specified user has assigned specific permission for the specified forum.

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 8.2.23
Syntax
C#
public static bool IsAuthorizedPerForum(
	int forumId,
	string permissionName,
	UserInfo userInfo,
	int siteId
)

Parameters

forumId
Type: SystemInt32
ID of the forum to check permission for
permissionName
Type: SystemString
Name of the permission
userInfo
Type: CMS.MembershipUserInfo
User info to check permission for
siteId
Type: SystemInt32
ID of the site role should belongs to

Return Value

Type: Boolean
See Also