btcpayserver/BTCPayServer/Roles.cs

15 lines
308 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(ServerAdmin, StringComparer.Ordinal);
}
}