public bool Authorization(LogDashboardContext context) { return(ExternalAuthorizationHelper.IsGranted(context.HttpContext, _authenticateApiUrl, PermissionNames.Tools_Log)); }
/// <summary> /// hangfire dashboard授权 /// </summary> /// <param name="context"></param> /// <returns></returns> public bool Authorize(DashboardContext context) { return(ExternalAuthorizationHelper.IsGranted(context.GetHttpContext(), _authenticateApiUrl, PermissionNames.Tools_HangfireDashboard)); }