Skip to content

Commit

Permalink
Revert to hasMany
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Oct 4, 2023
1 parent 6783676 commit 4d738a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/codeforafrica/src/payload/collections/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const Users = {
// Save this field to JWT so we can use from `req.user`
saveToJWT: true,
required: true,
defaultValue: ROLE_DEFAULT,
defaultValue: [ROLE_DEFAULT],
hasMany: true,
access: {
read: isAdminOrSelfFieldLevel,
create: isAdminFieldLevel,
Expand Down

0 comments on commit 4d738a8

Please sign in to comment.