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

@@ -30,7 +30,7 @@ namespace Umbraco.Web.BackOffice.Controllers
// ref: https://www.exceptionnotfound.net/the-asp-net-web-api-exception-handling-pipeline-a-guided-tour/
[PluginController("UmbracoApi")]
//[PrefixlessBodyModelValidator]
[UmbracoApplicationAuthorize(Core.Constants.Applications.Settings)]
[TypeFilter(typeof(UmbracoApplicationAuthorizeAttribute), Arguments = new object[]{new string []{Constants.Applications.Settings}})]
public class CodeFileController : BackOfficeNotificationsController
{
private readonly IIOHelper _ioHelper;