DocumentSecurityHelperIsAuthorizedPerTreeNode Method (TreeNode, NodePermissionsEnum, String, Boolean, UserInfo) |
Checks whether the user is authorized for the given document and permission, returns the authorization result.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax public static AuthorizationResultEnum IsAuthorizedPerTreeNode(
TreeNode node,
NodePermissionsEnum permission,
string culture,
bool checkUserAllowedCultures,
UserInfo userInfo
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node - permission
- Type: CMS.DocumentEngineNodePermissionsEnum
Permission to check - culture
- Type: SystemString
Culture of the document to be checked - checkUserAllowedCultures
- Type: SystemBoolean
Indicates if the allowed cultures of the user should be checked - userInfo
- Type: CMS.MembershipUserInfo
User to check
Return Value
Type:
AuthorizationResultEnumSee Also