fix: remove second invalid role comparison in admin layout
This commit is contained in:
parent
278643c117
commit
389bfb1794
|
|
@ -43,7 +43,7 @@ export default function AdminLayout({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isAuthenticated || (user?.role !== "ADMIN" && user?.role !== "admin")) {
|
if (!isAuthenticated || user?.role !== "ADMIN") {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user