rbac
rbac copied to clipboard
Hierarchical Role Based Access Control for NodeJS
Do you intend to add Typescript support at some point in the future?
``` var rbac = new RBAC({ roles: ["superadmin", "admin", "user", "guest"], permissions: { user: ["create", "delete"], password: ["change", "forgot"], article: ["create"], rbac: ["update"], }, grants: { guest: ["create_user", "forgot_password"], user:...
Thanks for your open source! Can this library support other nodeJS? Like Eggjs and not just express.
``` TypeError: _this6.items.reduce is not a function ``` Maybe this is because the type of memory.items is Object, not Array
v.5.0.3 import secure from 'rbac/controllers/express'; return Error: Cannot find module 'rbac/controllers/express'
This library is for `node` but we used it in browser as well. The only issue we have is that currently library supposed to work on `node@6+` and up and...
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project. #### Changes included in this PR - Changes to the following...
Hi I am trying to use this library but running the README example I get this error from the Memory storage `You can grant yourself admin` This is the setup...
v.5.0.3 var RBAC = require('rbac'); return ``` { __esModule: true, RBAC: [Function: RBAC], Base: [Function: Base], Role: [Function: Role], Permission: [Function: Permission], Storage: [Function: Storage], Memory: [Function: Memory] } ```...