a pattern I keep recommending to people is permissioned record iterators. let's ...

@gsuberland@chaos.social

a pattern I keep recommending to people is permissioned record iterators.

let's say you've got some set of objects. the set container itself might have some ACLs, and the objects also have ACLs. these may even be nested, e.g. a set of objects with a set of properties, where sets, objects, and properties are all securable entities.

the effective permissions are some convolution of these ACLs computed against an actor (e.g. the logged in user).

put the permission checks *in the set iterator*.