Skip to content

Commit 6f8b8d0

Browse files
fix(doc): corrects doc to match underlying Access type (#792)
1 parent 8a81d0b commit 6f8b8d0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/access-control/collections.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ const canReadPage = ({ req: { user } }) => {
9090
}
9191
// using a query constraint, guest users can access when a field named 'isPublic' is set to true
9292
return {
93-
where: {
94-
// assumes we have a checkbox field named 'isPublic'
95-
isPublic: {
96-
equals: true
97-
}
93+
// assumes we have a checkbox field named 'isPublic'
94+
isPublic: {
95+
equals: true
9896
}
9997
}
10098
};

0 commit comments

Comments
 (0)