Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortovoxx committed Mar 8, 2024
1 parent a92c5ce commit a4a25a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/payload/collections/Nominations/access/beforeVoting.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { FieldAccess } from 'payload/types'

import type { Election, Nomination } from '../../../payload-types'
import type { Nomination } from '../../../payload-types'
import { checkRole } from '../../Users/checkRole'

export const beforeVoting: FieldAccess<Nomination> = async ({ req, doc, data }) => {
export const beforeVoting: FieldAccess<Nomination> = async ({ req, doc }) => {
if (req.user && checkRole(['admin'], req.user)) {
return true
}
Expand Down

0 comments on commit a4a25a8

Please sign in to comment.