From 11c560247ebdb870a47034236ca1ff537c42b9c2 Mon Sep 17 00:00:00 2001 From: Christian Walker Date: Thu, 24 Oct 2024 13:07:27 -0500 Subject: [PATCH] fix admin link check --- apps/web/src/components/shared/ProfileButton.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/shared/ProfileButton.tsx b/apps/web/src/components/shared/ProfileButton.tsx index 86410e51..c9afb89a 100644 --- a/apps/web/src/components/shared/ProfileButton.tsx +++ b/apps/web/src/components/shared/ProfileButton.tsx @@ -111,7 +111,6 @@ export default async function ProfileButton() { ); } - // Returns only if there is a full user return ( @@ -153,14 +152,13 @@ export default async function ProfileButton() { Event Pass - {user.role === "admin" || - (user.role === "super_admin" && ( + {['admin','super_admin','volunteer'].includes(user.role) && ( Admin - ))} + )}