mirror of
https://github.com/wassname/talk.git
synced 2026-07-25 13:30:59 +08:00
remove context
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user