Merge pull request #11054 from umbraco/v9/bugfix/#10403-Fixed-Notification-with-UmbracoAuthorizedController

v9: Bugfix - Implemented attribute changes in controller
This commit is contained in:
Mole
2021-09-10 09:18:06 +02:00
committed by GitHub
3 changed files with 7 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,8 @@ 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]
[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
{
}