fix(doc): corrects doc to match underlying Access type (#792)

This commit is contained in:
Jarrod Flesch
2022-07-21 18:00:17 -04:00
committed by GitHub
parent 8a81d0b274
commit 6f8b8d0fb8

View File

@@ -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
}
}
};