From 5d303d08b53de9ca959c623fb9290dbc610f584d Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Wed, 1 Jun 2022 14:05:51 +0300 Subject: [PATCH] doc/privacy: add heading for filter rules section --- doc/md/privacy.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/md/privacy.md b/doc/md/privacy.md index 9f5247325..39117a3fb 100644 --- a/doc/md/privacy.md +++ b/doc/md/privacy.md @@ -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.