feat: allow admin to order licenses and query all partner end customers
All checks were successful
Staging Build / build (push) Successful in 2m15s

This commit is contained in:
DanielS
2026-06-24 00:32:20 +02:00
parent a56eb93ffc
commit 5662b9f770
2 changed files with 22 additions and 7 deletions

View File

@@ -35,10 +35,12 @@ export function LoginForm({
try {
const res = await signIn(email, password);
if (res.role === "admin") {
if (nextParam) {
router.push(nextParam);
} else if (res.role === "admin") {
router.push("/admin/einstellungen");
} else {
router.push(nextParam || "/my-customers");
router.push("/my-customers");
}
} catch (error: unknown) {
setError(error instanceof Error ? error.message : "An error occurred");