I’m reading through this primer on Permission Mode...
# talk-keto
s
I’m reading through this primer on Permission Models which discusses a basic model of
User
,
Document
, and
Folder
. There’s a small section on refactoring (link). However, I can’t seem to make sense of this:
Copy code
view: (ctx: Context): boolean =>
    this.related.viewers.includes(ctx.subject) ||
-   this.related.editors.includes(ctx.subject) ||
-   this.related.owners.includes(ctx.subject) ||
-   this.related.parents.traverse((parent) => parent.permits.view(ctx))
+   this.permits.edit(ctx)
If we drop
this.related.parents.traverse((parent) => parent.permits.view(ctx))
, how can a user inherit
view
access from the parent
Folder
?