Skip to content

Commit

Permalink
horseLeader bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerdavis1 committed Apr 6, 2024
1 parent 501c5f0 commit 3668aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/resources+/event-register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
}
Expand Down

0 comments on commit 3668aee

Please sign in to comment.