Ensures HealthCheckController is authorized to user with developer access

(cherry picked from commit 7c4eb71f07)
This commit is contained in:
Shannon
2017-09-25 14:49:59 +10:00
committed by Sebastiaan Janssen
parent 963015cf4a
commit 3ce6eb09aa

View File

@@ -3,12 +3,14 @@ using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
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;