Implemented attribute changes in controller

This commit is contained in:
Zeegaan
2021-09-08 14:54:21 +02:00
parent 06cf4c29b1
commit ef73e181f1
3 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
namespace Umbraco.Cms.Core.Models.ContentEditing
using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models.ContentEditing
{
[DataContract]
public enum NotificationStyle
{
/// <summary>

View File

@@ -23,6 +23,9 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
/// is logged in using forms authentication which indicates the seconds remaining
/// before their timeout expires.
/// </remarks>
[AngularJsonOnlyConfiguration] // TODO: This could be applied with our Application Model conventions
[JsonExceptionFilter]
[AngularJsonOnlyConfiguration]
[IsBackOffice]
[UmbracoUserTimeoutFilter]
[Authorize(Policy = AuthorizationPolicies.BackOfficeAccess)]

View File

@@ -1,4 +1,4 @@
using Umbraco.Cms.Web.BackOffice.Filters;
using Umbraco.Cms.Web.BackOffice.Filters;
using Umbraco.Cms.Web.Common.Filters;
namespace Umbraco.Cms.Web.BackOffice.Controllers
@@ -11,8 +11,6 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
/// methods that are not called by Angular or don't contain a valid csrf header will NOT work.
/// </remarks>
[ValidateAngularAntiForgeryToken]
[AngularJsonOnlyConfiguration] // TODO: This could be applied with our Application Model conventions
[JsonExceptionFilter]
public abstract class UmbracoAuthorizedJsonController : UmbracoAuthorizedApiController
{
}