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
It seems using if (typeof role.length) { to identify array, but it is true when role is a string.
So will show error: TypeError: role.map is not a function.
But when I update it, there will be other error.
It seems the code is not updated correctly, and some config like multipleRolePropertyName is not in document.
The text was updated successfully, but these errors were encountered:
It seems using
if (typeof role.length) {
to identify array, but it is true whenrole
is a string.So will show error:
TypeError: role.map is not a function
.Why not use
if (typeof role == 'object') {
?https://github.com/JefferyLiang/koa-2-acl/blob/master/lib/index.js#L57
But when I update it, there will be other error.
It seems the code is not updated correctly, and some config like
multipleRolePropertyName
is not in document.The text was updated successfully, but these errors were encountered: