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
2 changed files with 2 additions and 2 deletions

View File

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