mirror of
https://github.com/ent/ent.git
synced 2026-05-06 01:20:56 +03:00
doc/privacy: add heading for filter rules section
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user