From 389bfb17940b7cb03b7b7476423e358c1eea4b54 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 18 Nov 2025 00:15:28 +0100 Subject: [PATCH] fix: remove second invalid role comparison in admin layout --- app/admin/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/layout.tsx b/app/admin/layout.tsx index 5188f42..8affaf5 100644 --- a/app/admin/layout.tsx +++ b/app/admin/layout.tsx @@ -43,7 +43,7 @@ export default function AdminLayout({ ); } - if (!isAuthenticated || (user?.role !== "ADMIN" && user?.role !== "admin")) { + if (!isAuthenticated || user?.role !== "ADMIN") { return null; }