ssacl-attribute-roles
ssacl-attribute-roles copied to clipboard
Merge functionality from ackerdev/sequelize-attribute-roles?
Hi there,
I've written a spin-off of this package as I was interested in attribute roles but felt that overriding get
/set
wasn't good enough for my purposes; I decided to prototype something that could use Sequelize hooks to hide attributes on find. It turns out to work pretty decently, and I figured it might be of interest to you if you might want to merge in this functionality to replace the existing override.
Currently it only works for reads, and does not guard attributes on writes, and uses a similar but not exactly alike syntax for defining the role permissions on attributes. I'd be happy to assist in merging this if needed, the source should be easy to follow, but just let me know.