uprtcl / js-uprtcl

Libraries, tools and modules to create _Prtcl web apps
http://www.uprtcl.io/
Other
43 stars 13 forks source link

Rethink access control patterns #180

Open pepoospina opened 4 years ago

pepoospina commented 4 years ago

Right now the flow of loading and editing the access control configuration of an evee is as follows:

While there must be a way to know if a user canWrite a given evee independently of the remote of the evee (to prevent the UI from allowing a user to perform actions that will be blocked by the remote), it seems that the getPermissions, its patterns and its functionalities (mutations), should not be a generic module.

It seems more natural that the access control is close to where it lives: near the EveesRemote. It seems that what is needed is that the remote.accessControl is forced to have

No need to register intermediate patterns, common mutations, or anything else.