Fix: Do not expose xpub without modify store permission (#6212)

This commit is contained in:
Nicolas Dorier
2024-09-27 15:27:04 +09:00
committed by GitHub
parent 272cc3d3c9
commit 9ba4b030ed
10 changed files with 185 additions and 169 deletions

View File

@@ -831,10 +831,12 @@ namespace BTCPayServer.Controllers.Greenfield
}
public override async Task<InvoicePaymentMethodDataModel[]> GetInvoicePaymentMethods(string storeId,
string invoiceId, CancellationToken token = default)
string invoiceId,
bool onlyAccountedPayments = true, bool includeSensitive = false,
CancellationToken token = default)
{
return GetFromActionResult<InvoicePaymentMethodDataModel[]>(
await GetController<GreenfieldInvoiceController>().GetInvoicePaymentMethods(storeId, invoiceId));
await GetController<GreenfieldInvoiceController>().GetInvoicePaymentMethods(storeId, invoiceId, onlyAccountedPayments, includeSensitive));
}
public override async Task ArchiveInvoice(string storeId, string invoiceId, CancellationToken token = default)