コード例 #1
0
        internal bool HasPermission(ActionDetails a)
        {
            var perm = _t.GetCustomAttributes
                (typeof(IPermission), true).FirstOrDefault() as IPermission;

            if (perm != null)
                return perm.HasPermission(a);
            else
                return true;
        }
コード例 #2
0
 public virtual bool HasPermission(ActionDetails a)
 {
     return true;
 }