mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Keypad: Show recent transactions only when logged in (#5534)
Fixes #5530. For the use case of giving access to cashiers we need to find another solution than showing the recent transactions for signed out users.
This commit is contained in:
@@ -523,7 +523,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
|
||||
return View("Views/UIForms/View", viewModel);
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
||||
[Authorize(Policy = Policies.CanViewInvoices, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
|
||||
[HttpGet("/apps/{appId}/pos/recent-transactions")]
|
||||
public async Task<IActionResult> RecentTransactions(string appId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user