Allow access to global invoices list

The recent changes in 19eea3a615 prevent it to access a global/unfiltered list of invoices across all stores. This removes the fallback to the current store, which brings the global list back at `/invoices`.
This commit is contained in:
Dennis Reimann
2022-03-01 15:15:12 +01:00
committed by Andrew Camilleri
parent 7d3eef092c
commit 03e49ea2bf

View File

@@ -800,7 +800,7 @@ namespace BTCPayServer.Controllers
{ {
model = this.ParseListQuery(model ?? new InvoicesModel()); model = this.ParseListQuery(model ?? new InvoicesModel());
var fs = new SearchString(model.SearchTerm); var fs = new SearchString(model.SearchTerm);
string? storeId = (model.StoreId ?? HttpContext.GetStoreData()?.Id); string? storeId = model.StoreId;
var storeIds = new HashSet<string>(); var storeIds = new HashSet<string>();
if (fs.GetFilterArray("storeid") is string[] l) if (fs.GetFilterArray("storeid") is string[] l)
{ {