Skip to content

Commit

Permalink
fix(doc): corrects doc to match underlying Access type (#792)
Browse files Browse the repository at this point in the history
JarrodMFlesch authored Jul 21, 2022
1 parent 8a81d0b commit 6f8b8d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/access-control/collections.mdx
Original file line number Diff line number Diff line change
@@ -90,11 +90,9 @@ const canReadPage = ({ req: { user } }) => {
}
// using a query constraint, guest users can access when a field named 'isPublic' is set to true
return {
where: {
// assumes we have a checkbox field named 'isPublic'
isPublic: {
equals: true
}
// assumes we have a checkbox field named 'isPublic'
isPublic: {
equals: true
}
}
};

0 comments on commit 6f8b8d0

Please sign in to comment.