Revert "Revert "Ensures that all back office controllers are authenticated under the back office scheme""

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-11-27 13:35:22 +01:00
parent 541ff0fdb0
commit a098b956a6
13 changed files with 74 additions and 24 deletions

View File

@@ -81,6 +81,7 @@ namespace Umbraco.Web.Common.ApplicationModels
}
}
private bool IsUmbracoApiController(ControllerModel controller) => controller.Attributes.OfType<UmbracoApiControllerAttribute>().Any();
private bool IsUmbracoApiController(ControllerModel controller)
=> controller.Attributes.OfType<UmbracoApiControllerAttribute>().Any();
}
}