MCPcopy Index your code
hub / github.com/strongloop/loopback / processRelation

Function processRelation

common/models/role.js:389–396  ·  view source on GitHub ↗
(r, cb)

Source from the content-addressed store, hash-verified

387 async.someSeries(relWithUsers, processRelation, callback);
388
389 function processRelation(r, cb) {
390 inst[r](function processRelatedUser(err, user) {
391 if (err || !user) return cb(err, false);
392
393 debug('User found: %j (through %j)', user.id, r);
394 cb(null, matches(user.id, userId));
395 });
396 }
397 }
398
399 // A helper function to check if the app user config is multiple users or

Callers

nothing calls this directly

Calls 1

matchesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…