You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even I too wonder but I got following error:
/home/dilip/workspace/test/node_modules/rbac/dist/RBAC.js:602
for (var i = 0; i < items.length; i++) {
^
TypeError: Cannot read property 'length' of null
at /home/dilip/workspace/test/node_modules/rbac/dist/RBAC.js:602:34
at Memory.getGrants (/home/dilip/workspace/test/node_modules/rbac/dist/storages/Memory.js:195:16)
at RBAC._traverseGrants (/home/dilip/workspace/test/node_modules/rbac/dist/RBAC.js:595:20)
at RBAC.hasRole (/home/dilip/workspace/test/node_modules/rbac/dist/RBAC.js:758:12)
The undefined check should be done before using role grants and NoSuchRole error should thrown.
rbac/src/RBAC.js
Line 477 in 9825490
The text was updated successfully, but these errors were encountered: