mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
16 lines
348 B
C#
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);
|
|
}
|
|
}
|
|
}
|