/// <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); }
/// <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); }
public bool IsAllowed(UserBase user, string operation, IEntitySecurityKey key) { return(true); }
public bool IsAllowed(UserBase user, string operation, IEntitySecurityKey key) { return true; }
/// <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)); }
/// <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)); }