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

Function addRole

common/models/role.js:590–594  ·  view source on GitHub ↗
(role)

Source from the content-addressed store, hash-verified

588 this.resolveRelatedModels();
589
590 const addRole = function(role) {
591 if (role && roles.indexOf(role) === -1) {
592 roles.push(role);
593 }
594 };
595
596 const self = this;
597 // Check against the smart roles

Callers 1

role.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…