have function params in the correct order

This commit is contained in:
riley
2017-05-16 15:41:27 -06:00
parent c7e9fe3f5f
commit 31647fb2f0
7 changed files with 32 additions and 31 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, null, ...actions);
});
// Create the User model.