firebase / firebase/quickstart-testing
Test a firestore rule like "allow list"
Open
- Dominant language
- JavaScript
- Stars
- 368
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
In unit-test-security-rules-v9, show should I test an `allow list` rule, like in this example of firestore rules:
```
match /users/{userId}/{allPaths=**} {
allow list: if request.auth.token.isAdmin;
}
```
In my use-case, I want to allow users to `get` their own info but only admins can `list` everybody.
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.