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