https://github.com/umbraco/Umbraco-CMS/issues/8856 - also consider Tree controllers as backoffice

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-09-23 08:55:25 +02:00
parent 4880b16512
commit ae657b1078
23 changed files with 24 additions and 22 deletions

View File

@@ -53,7 +53,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.BackOfficeApiArea);
|| pluginControllerAttribute.AreaName == Core.Constants.Web.Mvc.BackOfficeApiArea
|| pluginControllerAttribute.AreaName == Core.Constants.Web.Mvc.BackOfficeTreeArea);
}
}
}