The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/publications/userData.coffee

24 lines
537 B

Meteor.publish 'userData', ->
unless this.userId
return this.ready()
RocketChat.models.Users.find this.userId,
fields:
name: 1
username: 1
status: 1
statusDefault: 1
statusConnection: 1
avatarOrigin: 1
utcOffset: 1
language: 1
settings: 1
roles: 1
active: 1
defaultRoom: 1
'services.github': 1
'services.gitlab': 1
requirePasswordChange: 1
requirePasswordChangeReason: 1
'services.password.bcrypt': 1
statusLivechat: 1 # @TODO create an API so a package could add fields here