mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-20 15:34:24 +01:00
Switch from System.Text.Json to Newtonsoft, typify the BTCPayServer.Client
This commit is contained in:
@@ -55,7 +55,7 @@ namespace BTCPayServer.Security.Bitpay
|
||||
var anyoneCanInvoice = store.GetStoreBlob().AnyoneCanInvoice;
|
||||
switch (requirement.Policy)
|
||||
{
|
||||
case Permission.CanCreateInvoice:
|
||||
case Policies.CanCreateInvoice:
|
||||
if (!isAnonymous || (isAnonymous && anyoneCanInvoice))
|
||||
{
|
||||
context.Succeed(requirement);
|
||||
@@ -63,7 +63,7 @@ namespace BTCPayServer.Security.Bitpay
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case Policies.CanGetRates.Key:
|
||||
case ServerPolicies.CanGetRates.Key:
|
||||
context.Succeed(requirement);
|
||||
_HttpContext.SetStoreData(store);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user