We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5dad3 commit b523eb9Copy full SHA for b523eb9
server/lib/accounts.coffee
@@ -48,7 +48,7 @@ Accounts.onCreateUser (options, user) ->
48
Accounts.insertUserDoc = _.wrap Accounts.insertUserDoc, (insertUserDoc) ->
49
options = arguments[1]
50
user = arguments[2]
51
- _id = insertUserDoc(options, user)
+ _id = insertUserDoc.call(Accounts, options, user)
52
53
# when inserting first user give them admin privileges otherwise make a regular user
54
firstUser = RocketChat.models.Users.findOne({},{sort:{createdAt:1}})
0 commit comments