SenseNet.ContentRepository.SavingAction.CheckManageListPermission C# (CSharp) Метод

CheckManageListPermission() публичный статический Метод

public static CheckManageListPermission ( NodeType nodeType, Node targetNode ) : bool
nodeType SenseNet.ContentRepository.Storage.Schema.NodeType
targetNode Node
Результат bool
        public static bool CheckManageListPermission(NodeType nodeType, Node targetNode)
        {
            //silent error handling
            if (nodeType == null || targetNode == null)
                return true;

            return (!nodeType.IsInstaceOfOrDerivedFrom("ContentList") && !nodeType.IsInstaceOfOrDerivedFrom("Workspace")) || targetNode.Security.HasPermission(PermissionType.ManageListsAndWorkspaces);
        }