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!


#2

These are my code changes:


#3

Moved this particular post to development since you ended up posting code snippet to solve the problem.

If you have a feature request opened somewhere I’d definitely link here and include your solution


#4

Hi Aaron,

this is the feature request I posted last year:

Cheers
m