Ejemplo n.º 1
0
        protected internal bool IsPermitted(Document doc)
        {
            var nodeId       = Convert.ToInt32(doc.Get(IndexFieldName.NodeId));
            var isLastPublic = doc.Get(IndexFieldName.IsLastPublic) == IndexValue.Yes;
            var isLastDraft  = doc.Get(IndexFieldName.IsLastDraft) == IndexValue.Yes;

            return(PermissionChecker.IsPermitted(nodeId, isLastPublic, isLastDraft));
        }