Hide fields in View Full Other User Info

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!

These are my code changes:

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

Hi Aaron,

this is the feature request I posted last year:

Cheers
m