https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/6587 - Migrated DataTypeController + Fixed injection of services to UmbracoApplicationAuthorizeAttribute

This commit is contained in:
Bjarke Berg
2020-05-26 14:42:19 +02:00
parent e879c5c7d9
commit 71a8cb6d35
13 changed files with 242 additions and 168 deletions

View File

@@ -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;