btcpayserver/BTCPayServer/Roles.cs

16 lines
348 B
C#
Raw Normal View History

using System;
2023-04-10 04:07:03 +02:00
using System.Collections.Generic;
using System.Linq;
2017-09-15 12:08:31 +02:00
namespace BTCPayServer
{
public class Roles
{
public const string ServerAdmin = "ServerAdmin";
public static bool HasServerAdmin(IList<string> roles)
{
return roles.Contains(Roles.ServerAdmin, StringComparer.Ordinal);
}
2017-09-15 12:08:31 +02:00
}
}