From cbf342f239a37e32047618a040590c932ebd2869 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 18 Sep 2024 13:50:09 -0400 Subject: [PATCH] Fix auth check --- app/routes/events-calendar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/events-calendar.tsx b/app/routes/events-calendar.tsx index 3213e09..340c720 100644 --- a/app/routes/events-calendar.tsx +++ b/app/routes/events-calendar.tsx @@ -16,7 +16,7 @@ export async function loader({ context }: { context: RequestContext }) { }); if ( - [1 << 3, 1 << 4, 1 << 12].find( + ![1 << 3, 1 << 4, 1 << 12].find( (p) => context.data.current_user.permissions & p, ) )