From 3668aeee100e3319e2bdbf156711ec456010f6bf Mon Sep 17 00:00:00 2001 From: Parker Date: Sat, 6 Apr 2024 15:04:48 -0700 Subject: [PATCH] horseLeader bug fix --- app/routes/resources+/event-register.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/resources+/event-register.tsx b/app/routes/resources+/event-register.tsx index f304e4b..b88cd54 100644 --- a/app/routes/resources+/event-register.tsx +++ b/app/routes/resources+/event-register.tsx @@ -104,7 +104,7 @@ export async function action({ request }: DataFunctionArgs) { } } if (submission.value.role == 'horseLeaders') { - if (!user.roles.find(role => role.name === 'horseleader')) { + if (!user.roles.find(role => role.name === 'horseLeader')) { throw json({ error: 'Missing permissions' }, { status: 403 }) } }