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:
@@ -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>
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user