diff --git a/BTCPayServer/Controllers/UIPaymentRequestController.cs b/BTCPayServer/Controllers/UIPaymentRequestController.cs index f8e7f9a97..b74fc19c4 100644 --- a/BTCPayServer/Controllers/UIPaymentRequestController.cs +++ b/BTCPayServer/Controllers/UIPaymentRequestController.cs @@ -26,8 +26,8 @@ using StoreData = BTCPayServer.Data.StoreData; namespace BTCPayServer.Controllers { - [Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)] [Route("payment-requests")] + [Authorize(Policy = Policies.CanViewPaymentRequests, AuthenticationSchemes = AuthenticationSchemes.Cookie)] public class UIPaymentRequestController : Controller { private readonly UIInvoiceController _InvoiceController; @@ -69,7 +69,6 @@ namespace BTCPayServer.Controllers FormDataService = formDataService; } - [HttpGet("/stores/{storeId}/payment-requests")] [Authorize(Policy = Policies.CanViewPaymentRequests, AuthenticationSchemes = AuthenticationSchemes.Cookie)] public async Task GetPaymentRequests(string storeId, ListPaymentRequestsViewModel model = null) @@ -363,6 +362,7 @@ namespace BTCPayServer.Controllers } [HttpGet("{payReqId}/cancel")] + [AllowAnonymous] public async Task CancelUnpaidPendingInvoice(string payReqId, bool redirect = true) { var result = await _PaymentRequestService.GetPaymentRequest(payReqId, GetUserId());