fix: portal user match for dtiurbe / d.tiurbe@beletage.ro

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-25 00:55:57 +02:00
parent f1f4dc097e
commit daca222427
+1 -1
View File
@@ -16,7 +16,7 @@ export async function middleware(request: NextRequest) {
if (token) {
const { pathname } = request.nextUrl;
// Portal-only users: redirect to /portal when accessing main app
const portalUsers = ["dan.tiurbe", "tiurbe"];
const portalUsers = ["dtiurbe", "d.tiurbe"];
const tokenEmail = String(token.email ?? "").toLowerCase();
const tokenName = String(token.name ?? "").toLowerCase();
const isPortalUser = portalUsers.some(