Skip to content
Discussion options

You must be logged in to vote

Sometimes you gotta ask the question to find the answer 🦆

Found out that it's the wildcard {categoryId} that was causing the trouble. Had to use resource.data.id instead

get(/databases/$(database)/documents/users/$(request.auth.uid)).data.categoryReadAccessList.hasAny([resource.data.id])

A "logical" explanation would be that {categoryId} is a wildcard, so not limited by the query. Where resource.data has been limited by the query.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Norfeldt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant