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
// users and groups have their keys as _id, but roles have them stored as key
var principals = noKeys ? [] : common.queryAll({
query:
common.createQueryByField('_id', keys) +
' OR ' +
common.createQueryByField('key', keys)
}).hits;
This is incorrect. It is a wrong assumption that principal-key is a node _id
It is also wrong that roles have key field.
This method also dangerously returns undefined when nothing is found leading to various problems.
findPrincipals method should be used instead
The text was updated successfully, but these errors were encountered:
proncipal.js
This is incorrect. It is a wrong assumption that
principal-key
is a node_id
It is also wrong that roles have
key
field.This method also dangerously returns
undefined
when nothing is found leading to various problems.findPrincipals
method should be used insteadThe text was updated successfully, but these errors were encountered: