Guest role: Fix redirect after store creation (#5689)

This ensures that guests land on the invoices list, which tehy are allowed to see — rather than the dashboard, which they don't have permissions for.

Fixes #5688.
This commit is contained in:
d11n 2024-01-24 11:34:16 +01:00 committed by GitHub
parent 35b3fef7c5
commit 8089a938f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ namespace BTCPayServer.Controllers
await _repo.CreateStore(GetUserId(), store); await _repo.CreateStore(GetUserId(), store);
CreatedStoreId = store.Id; CreatedStoreId = store.Id;
TempData[WellKnownTempData.SuccessMessage] = "Store successfully created"; TempData[WellKnownTempData.SuccessMessage] = "Store successfully created";
return RedirectToAction(nameof(UIStoresController.Dashboard), "UIStores", new return RedirectToAction(nameof(UIStoresController.Index), "UIStores", new
{ {
storeId = store.Id storeId = store.Id
}); });