Merge pull request #1102 from zanemcca/fix/issue1099
Fix for issue 1099.
This commit is contained in:
commit
4afcfaa32f
|
@ -104,9 +104,12 @@ module.exports = function(Role) {
|
|||
});
|
||||
|
||||
function isUserClass(modelClass) {
|
||||
if (modelClass) {
|
||||
return modelClass === loopback.User ||
|
||||
modelClass.prototype instanceof loopback.User;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Check if two user ids matches
|
||||
|
|
Loading…
Reference in New Issue