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

Function isUserClass

common/models/role.js:188–193  ·  view source on GitHub ↗
(modelClass)

Source from the content-addressed store, hash-verified

186 });
187
188 function isUserClass(modelClass) {
189 if (!modelClass) return false;
190 const User = modelClass.modelBuilder.models.User;
191 if (!User) return false;
192 return modelClass == User || modelClass.prototype instanceof User;
193 }
194
195 /*!
196 * Check if two user IDs matches

Callers 3

role.jsFile · 0.85
legacyOwnershipCheckFunction · 0.85
checkOwnershipFunction · 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…