Ensure all back office controllers are plugin controllers and use constant

This commit is contained in:
Shannon
2020-08-04 12:27:21 +10:00
parent 03bb780c16
commit 4edf7fdf83
26 changed files with 162 additions and 147 deletions

View File

@@ -78,7 +78,7 @@ namespace Umbraco.Web.BackOffice.Controllers
/// <summary>
/// Deletes a language with a given ID
/// </summary>
[UmbracoTreeAuthorizeAttribute(Constants.Trees.Languages)]
[UmbracoTreeAuthorize(Constants.Trees.Languages)]
[HttpDelete]
[HttpPost]
public IActionResult DeleteLanguage(int id)
@@ -107,7 +107,7 @@ namespace Umbraco.Web.BackOffice.Controllers
/// <summary>
/// Creates or saves a language
/// </summary>
[UmbracoTreeAuthorizeAttribute(Constants.Trees.Languages)]
[UmbracoTreeAuthorize(Constants.Trees.Languages)]
[HttpPost]
public Language SaveLanguage(Language language)
{