Skip to content
Snippets Groups Projects
Commit cebb602a authored by graywolf336's avatar graywolf336
Browse files

Remove the debugging message on account creation.

parent b20e8aa0
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,6 @@ Accounts.insertUserDoc = _.wrap Accounts.insertUserDoc, (insertUserDoc) ->
# when inserting first user give them admin privileges otherwise make a regular user
firstUser = RocketChat.models.Users.findOne({ _id: { $ne: 'rocket.cat' }}, { sort: { createdAt: 1 }})
roleName = if firstUser?._id is _id then 'admin' else 'user'
console.log "The role for #{_id} is #{roleName}."
RocketChat.authz.addUsersToRoles(_id, roleName)
RocketChat.callbacks.run 'afterCreateUser', options, user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment