Merge pull request #1102 from zanemcca/fix/issue1099

Fix for issue 1099.
This commit is contained in:
Raymond Feng 2015-02-18 09:21:10 -08:00
commit 4afcfaa32f
1 changed files with 5 additions and 2 deletions

View File

@ -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