Exemplo n.º 1
0
 /// <summary>
 /// 根据action 获取是否有权限
 /// </summary>
 /// <param name="action"></param>
 /// <returns></returns>
 public bool this[PLEnums.ActionEnum action]
 {
     get {
         if (manage_auths.Exists(p => p.action == action))
         {
             return(manage_auths.Single(p => p.action == action).auth);
         }
         else
         {
             return(false);
         }
     }
 }
Exemplo n.º 2
0
 public manage_auth(PLEnums.ActionEnum action, bool auth)
 {
     _action = action;
     _auth   = auth;
 }