Hide fields in View Full Other User Info


#1

Hi,

due to data privacy I’d like to hide “Created at” and “Last login” in “View Full Other User Info”.

In my old bundle 0.61.0 I just modified

packages/rocketchat-lib/server/functions/getFullUserData.js

to something like this:


	if (RocketChat.authz.hasPermission(userId, 'assign-admin-role')) {
            	fields = _.extend(fields, { 
            		createdAt: 1,
			lastLogin: 1
		});

Ciao!