예제 #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));
 }