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 }) } }