DocumentSecurityHelperIsAuthorizedPerDocument Method (TreeNode, NodePermissionsEnum, String, Boolean, String, UserInfo) |
Note: This API is now obsolete.
Checks if the user is authorized for specified document (Check all CONTENT, CLASS and Document type permissions.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax [ObsoleteAttribute("This method is obsolete, use IsAuthorizedPerDocument(TreeNode node, NodePermissionsEnum[] permissions, bool checkUserAllowedCultures, string culture, UserInfo userInfo) instead.")]
public static AuthorizationResultEnum IsAuthorizedPerDocument(
TreeNode node,
NodePermissionsEnum[] permissions,
string siteName,
bool checkUserAllowedCultures,
string culture,
UserInfo userInfo
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - permissions
- Type: CMS.DocumentEngineNodePermissionsEnum
Permissions to check - siteName
- Type: SystemString
Site name - checkUserAllowedCultures
- Type: SystemBoolean
Indicates if the allowed cultures of the user should be checked - culture
- Type: SystemString
Culture to check - userInfo
- Type: CMS.MembershipUserInfo
User to check
Return Value
Type:
AuthorizationResultEnumSee Also