mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
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:
parent
35b3fef7c5
commit
8089a938f3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue