diff --git a/src/navigation/ProtectedRoutes/ProtectedRoutes.tsx b/src/navigation/ProtectedRoutes/ProtectedRoutes.tsx index 55cb3ddc..2f158610 100644 --- a/src/navigation/ProtectedRoutes/ProtectedRoutes.tsx +++ b/src/navigation/ProtectedRoutes/ProtectedRoutes.tsx @@ -49,8 +49,8 @@ export const ProtectedRoutes: React.FC = ({ if ( adminOnly && ((location.pathname.startsWith("/admin/ticket") && - session.currentUser.type === "volunteer" && - session.currentUser.rsvpVerified) || + (session.currentUser.type !== "volunteer" || + !session.currentUser.rsvpVerified)) || !session.currentUser.hawkAdmin) ) { // redirect to not found page if user is not authorized to view