Skip to content

Commit

Permalink
fix: secure edit action
Browse files Browse the repository at this point in the history
  • Loading branch information
sgomez committed Dec 9, 2023
1 parent a93d707 commit 1c3cb5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/auth/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import prisma from '@/lib/prisma/prisma'

const authConfig = {
accessControl: [
{
path: '^/books/\\w+/edit',
roles: 'IS_AUTHENTICATED',
},
{
path: '^/settings',
roles: 'IS_AUTHENTICATED',
Expand Down

0 comments on commit 1c3cb5c

Please sign in to comment.