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.js

29 lines
556 B

Meteor.publish('userData', function() {
if (!this.userId) {
return this.ready();
}
return 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,
customFields: 1,
'services.github': 1,
'services.gitlab': 1,
requirePasswordChange: 1,
requirePasswordChangeReason: 1,
'services.password.bcrypt': 1,
statusLivechat: 1
}
});
});