Simple module that is caching roles using lokijs.
$ yarn install role-handler-nt --save
-
inMemoryGo(arrRoles)
- Description : Caching the roles.
- @param {Array} arrRoles
- @return {Promise}
- Description : Caching the roles.
-
check(roleLabel, module, action)
- Description : Check the role
- @param {string} roleLabel
- @param {string} module
- @param {string | number} action
- @return {boolean}