/// <summary> /// </summary> /// <param name="context"></param> /// <param name="resource"></param> /// <param name="resOperator"></param> /// <returns></returns> public static bool HasRight(this MemberShipContext context, object resource, Enum resOperator) { return(context.HasRight(context.CurrentUser(), resource, resOperator)); }
public bool HasRight(User user) { return(_context.HasRight(user, Resource, OperatorValue)); }
/// <summary> /// </summary> /// <param name="context"></param> /// <param name="resType"></param> /// <param name="id"></param> /// <param name="resOperator"></param> /// <returns></returns> public static bool HasRight(this MemberShipContext context, Type resType, object id, Enum resOperator) { return(context.HasRight(context.CurrentUser(), resType, id, resOperator)); }