swift-processor-51967
03/05/2024, 2:40 PMUser
, Document
, and Folder
. There’s a small section on refactoring (link). However, I can’t seem to make sense of this:
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
?