Migrated section controller + LanguageTreeController, ApplciationTreeController.

Updated AngularJsonOnlyConfigurationAttribute to be a TypeFilterAttribute, to allow injeciton into the filter.

Note: Left TODO about checking authorization of proxied trees..
This commit is contained in:
Bjarke Berg
2020-06-08 13:14:23 +02:00
parent 458de2b0be
commit af382e5e71
20 changed files with 250 additions and 191 deletions

View File

@@ -22,7 +22,7 @@ namespace Umbraco.Web.Common.Install
[UmbracoApiController]
[TypeFilter(typeof(HttpResponseExceptionFilter))]
[TypeFilter(typeof(AngularJsonOnlyConfigurationAttribute))]
[AngularJsonOnlyConfiguration]
[InstallAuthorize]
[Area(Umbraco.Core.Constants.Web.Mvc.InstallArea)]
public class InstallApiController : ControllerBase
@@ -95,7 +95,7 @@ namespace Umbraco.Web.Common.Install
/// <summary>
/// Installs.
/// </summary>
/// </summary>
public async Task<InstallProgressResultModel> PostPerformInstall(InstallInstructions installModel)
{
if (installModel == null) throw new ArgumentNullException(nameof(installModel));