コード例 #1
0
        public void Can_Check_Node_Has_Permissions()
        {
            Scaffold.Config();

            Assert.True(_repo.NodeHasPermissions(1079));
        }
コード例 #2
0
        /// <summary>
        /// Get the  id of the root ancestor node for the given id
        /// </summary>
        /// <param name="nodeId"></param>
        /// <returns></returns>
        public bool HasFlow(int nodeId)
        {
            string root = _contentService.GetById(nodeId).Path.Split(',')[1];

            return(_pocoRepo.NodeHasPermissions(int.Parse(root)));
        }