17 lines
556 B
C#
17 lines
556 B
C#
|
|
using Microsoft.AspNetCore.Authorization;
|
|||
|
|
using Umbraco.Cms.Core;
|
|||
|
|
using Umbraco.Cms.Web.Common.Authorization;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Cms.Api.Management.ServerEvents.Authorizers;
|
|||
|
|
|
|||
|
|
public class UserEventAuthorizer : EventSourcePolicyAuthorizer
|
|||
|
|
{
|
|||
|
|
public UserEventAuthorizer(IAuthorizationService authorizationService) : base(authorizationService)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override IEnumerable<string> AuthorizableEventSources => [Constants.ServerEvents.EventSource.User];
|
|||
|
|
|
|||
|
|
protected override string Policy => AuthorizationPolicies.SectionAccessUsers;
|
|||
|
|
}
|