Closed
Description
[REQUIRED] Step 2: Describe your environment
- Firebase Component: Firestore
- Component version: 17.1.5
[REQUIRED] Step 3: Describe the problem
Suppose I'm writing this document:
field1: true
...
owners:
uid1: 5
With these security rules:
match /teams/{teamId} {
allow get: if resource.data.owners[request.auth.uid] is int;
allow write: true;
}
And this code:
ref.set(obj)
ref.get() // This fails!
The get request will fail with a PERMISSION_DENIED
error. But it works fine if I wait a few seconds.
Metadata
Metadata
Assignees
Labels
No labels