Skip to content

Commit

Permalink
fix up admin ticket view proctection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed May 16, 2024
1 parent a41d65d commit 62359f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigation/ProtectedRoutes/ProtectedRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const ProtectedRoutes: React.FC<ProtectedRoutesProps> = ({
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
Expand Down

0 comments on commit 62359f8

Please sign in to comment.