mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 14:13:18 +08:00
20 lines
663 B
C#
20 lines
663 B
C#
|
|
#nullable enable
|
|||
|
|
using Microsoft.AspNetCore.Authorization.Infrastructure;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.NotificationCenter.Authorization;
|
|||
|
|
|
|||
|
|
public class NotificationStatusOperationsRequirement : OperationAuthorizationRequirement
|
|||
|
|
{
|
|||
|
|
public NotificationStatusOperationsRequirement(string name)
|
|||
|
|
{
|
|||
|
|
Name = name;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public static class NotificationStatusOperations
|
|||
|
|
{
|
|||
|
|
public static readonly NotificationStatusOperationsRequirement Read = new(nameof(Read));
|
|||
|
|
public static readonly NotificationStatusOperationsRequirement Create = new(nameof(Create));
|
|||
|
|
public static readonly NotificationStatusOperationsRequirement Update = new(nameof(Update));
|
|||
|
|
}
|