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:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user