示例#1
0
 /// <summary>
 /// 用户是否有操作某个指定对象的权限
 /// </summary>
 /// <param name="user"></param>
 /// <param name="operation"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool IsAllowed(UserBase user, string operation, IEntitySecurityKey key)
 {
     return _azService.IsAllowed(user, operation, key);
 }
示例#2
0
 /// <summary>
 /// 是否允许操作某个指定的对象
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool IsAllowed(string operation, IEntitySecurityKey key)
 {
     return _azService.IsAllowed(CurrentUser, operation, key);
 }
示例#3
0
 public bool IsAllowed(UserBase user, string operation, IEntitySecurityKey key)
 {
     return(true);
 }
 public bool IsAllowed(UserBase user, string operation, IEntitySecurityKey key)
 {
     return true;
 }
示例#5
0
 /// <summary>
 /// 用户是否有操作某个指定对象的权限
 /// </summary>
 /// <param name="user"></param>
 /// <param name="operation"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool IsAllowed(UserBase user, string operation, IEntitySecurityKey key)
 {
     return(_azService.IsAllowed(user, operation, key));
 }
示例#6
0
 /// <summary>
 /// 是否允许操作某个指定的对象
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static bool IsAllowed(string operation, IEntitySecurityKey key)
 {
     return(_azService.IsAllowed(CurrentUser, operation, key));
 }