btcpayserver/BTCPayServer/Roles.cs
2023-04-10 11:07:03 +09:00

16 lines
348 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
namespace BTCPayServer
{
public class Roles
{
public const string ServerAdmin = "ServerAdmin";
public static bool HasServerAdmin(IList<string> roles)
{
return roles.Contains(Roles.ServerAdmin, StringComparer.Ordinal);
}
}
}