ForumInfoProviderIsAuthorizedPerForum Method |
Indicates whether specified user has assigned specific permission for the specified forum.
Namespace: CMS.ForumsAssembly: CMS.Forums (in CMS.Forums.dll) Version: 9.0.0
Syntaxpublic 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