(r, cb)
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…