Ensures HealthCheckController is authorized to user with developer access

This commit is contained in:
Shannon
2017-09-25 14:49:59 +10:00
parent c9ea1a5504
commit 7c4eb71f07

View File

@@ -6,12 +6,14 @@ using System.Web.Http;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.HealthChecks;
using Umbraco.Web.Editors;
using Umbraco.Web.WebApi.Filters;
namespace Umbraco.Web.HealthCheck
{
/// <summary>
/// The API controller used to display the health check info and execute any actions
/// </summary>
[UmbracoApplicationAuthorize(Core.Constants.Applications.Developer)]
public class HealthCheckController : UmbracoAuthorizedJsonController
{
private readonly IHealthCheckResolver _healthCheckResolver;