Removes UmbracoApplicationAuthorizeAttribute and migrates usages to authz policies

This commit is contained in:
Shannon
2020-11-19 22:17:42 +11:00
parent daaade185e
commit 63fceebca0
25 changed files with 233 additions and 172 deletions

View File

@@ -22,6 +22,8 @@ using Umbraco.Web.Common.Exceptions;
using Umbraco.Web.Models;
using Umbraco.Web.Models.ContentEditing;
using Umbraco.Web.Security;
using Microsoft.AspNetCore.Authorization;
using Umbraco.Web.BackOffice.Authorization;
namespace Umbraco.Web.BackOffice.Controllers
{
@@ -29,7 +31,7 @@ namespace Umbraco.Web.BackOffice.Controllers
/// A controller used for installing packages and managing all of the data in the packages section in the back office
/// </summary>
[PluginController(Constants.Web.Mvc.BackOfficeApiArea)]
[UmbracoApplicationAuthorizeAttribute(Constants.Applications.Packages)]
[Authorize(Policy = AuthorizationPolicies.SectionAccessPackages)]
public class PackageInstallController : UmbracoAuthorizedJsonController
{