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
When calling addPermissionToRole, if one of the resources is undefined, it would lead to an error
TypeError: Cannot read property 'split' of undefined
at AccessAuthorizer.filterRelevantPermissions (node_modules/@bluejay/access-control/src/classes/access-authorizer.js:60:62)
at AccessAuthorizer.authorize (node_modules/@bluejay/access-control/src/classes/access-authorizer.js:21:42)
at AccessControl.<anonymous> (node_modules/@bluejay/access-control/src/classes/access-control.js:20:42)
You should be able to reproduce by codes like this:
When calling addPermissionToRole, if one of the resources is
undefined
, it would lead to an errorYou should be able to reproduce by codes like this:
The text was updated successfully, but these errors were encountered: