sails-roles

0.1.3 • Public • Published

NPM version Build status Dependency Status

sails-roles

The purpose of this hooks is to provide a better user management without involving any change into your current models (exceptions on the user model of course)

This hooks offers two distinct aspects, Roles and Groups

Roles

Roles are here to determine if a user has a specific permission on a specific model / action

Groups

Groups are here to determine if a user is part of certain groups. This may seem a little bit useless, but the fact that we never change the base model of your app makes it super easy to implement groups logic on every kind of object your app contains

Package Sidebar

Install

npm i sails-roles

Weekly Downloads

2

Version

0.1.3

License

MIT

Last publish

Collaborators

  • cornik