Skip to content

Commit

Permalink
Merge pull request #82 from opportunity-hack/dev
Browse files Browse the repository at this point in the history
Notes option and horseLeader fix
  • Loading branch information
gregv authored Apr 7, 2024
2 parents 0afe625 + 57603cc commit 03aafec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes/admin+/_users+/users.edit.$userId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const editUserSchema = z.object({
isInstructor: checkboxSchema(),
isLessonAssistant: checkboxSchema(),
isHorseLeader: checkboxSchema(),
notes: z.string(),
notes: z.string().optional(),
})

export const loader = async ({ request, params }: DataFunctionArgs) => {
Expand Down
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 03aafec

Please sign in to comment.