https://github.com/umbraco/Umbraco-CMS/issues/8856 - Aligned namespaces of controllers and also determine BackOfficeApiArea as backoffice

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-09-22 11:07:01 +02:00
parent 525ca95acf
commit 02e3cc7c30
6 changed files with 9 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ namespace Umbraco.Web.Common.ApplicationModels
public BackOfficeApplicationModelProvider(IModelMetadataProvider modelMetadataProvider)
{
ActionModelConventions = new List<IActionModelConvention>()
{
{
new BackOfficeIdentityCultureConvention()
};
}
@@ -52,7 +52,8 @@ namespace Umbraco.Web.Common.ApplicationModels
{
var pluginControllerAttribute = controller.Attributes.OfType<PluginControllerAttribute>().FirstOrDefault();
return pluginControllerAttribute != null
&& pluginControllerAttribute.AreaName == Core.Constants.Web.Mvc.BackOfficeArea;
&& (pluginControllerAttribute.AreaName == Core.Constants.Web.Mvc.BackOfficeArea
|| pluginControllerAttribute.AreaName == Core.Constants.Web.Mvc.BackOfficeApiArea);
}
}
}