doc/privacy: add heading for filter rules section

This commit is contained in:
Ariel Mashraki
2022-06-01 14:05:51 +03:00
committed by GitHub
parent 6120ecfa14
commit 5d303d08b5

View File

@@ -375,6 +375,8 @@ func (TenantMixin) Edges() []ent.Edge {
}
```
#### Filter Rules
Next, we may want to enforce a rule that will limit viewers to only query groups and users that are connected to the tenant they belong to.
For use cases like this, Ent has an additional type of privacy rule named `Filter`.
We can use `Filter` rules to filter out entities based on the identity of the viewer.