flash-oss / node_acl

Access control lists for node applications
MIT License
63 stars 9 forks source link

dynamic assertions? #2

Closed scottybe closed 3 years ago

scottybe commented 3 years ago

Hi, and thanks for supporting this library. I have experience with Zend ACL and was comparing this with it.

Does this support the ability for a permission to be determined dynamically? For example, how would I only allow a user with the "editor" role to edit a "document" resource only if he is the document creator?

https://docs.zendframework.com/zend-expressive-authorization-rbac/v1/dynamic-assertion/

Thanks!

koresar commented 3 years ago

Hello @scottybe None of us is familiar with Zend ACL.

But answering your question I believe that the answer should be "Yes". But I have no idea what would be the JS code for that.

Sorry. There is not much help you can get from us.