Example #1
0
        /// <summary>
        /// 检查是否包含给定的操作(复数)
        /// </summary>
        public virtual IList <bool> CheckAction(IList <string> actionkeys)
        {
            if (this.ActionKeys.Count == 0 && this.ActionKey != null)
            {
                DeserialRolePurview();
            }

            return(ActionKeys.Select(o => ActionKeys.Contains(o)).ToList());
        }
Example #2
0
        /// <summary>
        /// 检查是否包含给定的操作
        /// </summary>
        public virtual bool CheckAction(string actionKey)
        {
            if (this.ActionKeys.Count == 0 && this.ActionKey != null)
            {
                DeserialRolePurview();
            }

            return(ActionKeys.Contains(actionKey));
        }