remove context

This commit is contained in:
riley
2017-05-16 16:34:04 -06:00
parent 03ce044c53
commit d081c0c5b5
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ UserSchema.method('verifyPassword', function(password) {
* operation.
*/
UserSchema.method('can', function(...actions) {
return can(this, null, ...actions);
return can(this, ...actions);
});
// Create the User model.