https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated DataTypeController + Fixed injection of services to UmbracoApplicationAuthorizeAttribute
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Umbraco.Core.Hosting;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Hosting;
|
||||
using Umbraco.Web.BackOffice.Filters;
|
||||
using Umbraco.Web.Editors;
|
||||
|
||||
@@ -8,7 +10,7 @@ namespace Umbraco.Web.BackOffice.Profiling
|
||||
/// <summary>
|
||||
/// The API controller used to display the state of the web profiler
|
||||
/// </summary>
|
||||
[UmbracoApplicationAuthorizeAttribute(Core.Constants.Applications.Settings)]
|
||||
[TypeFilter(typeof(UmbracoApplicationAuthorizeAttribute), Arguments = new object[]{new string []{Constants.Applications.Settings}})]
|
||||
public class WebProfilingController : UmbracoAuthorizedJsonController
|
||||
{
|
||||
private readonly IHostingEnvironment _hosting;
|
||||
|
||||
Reference in New Issue
Block a user