mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
17 lines
400 B
C#
17 lines
400 B
C#
using System;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace BTCPayServer.Security
|
|
{
|
|
public class PolicyRequirement : IAuthorizationRequirement
|
|
{
|
|
public PolicyRequirement(string policy)
|
|
{
|
|
if (policy == null)
|
|
throw new ArgumentNullException(nameof(policy));
|
|
Policy = policy;
|
|
}
|
|
public string Policy { get; }
|
|
}
|
|
}
|