firebase / firebase/quickstart-testing

Test a firestore rule like "allow list"

Open
#224 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.