Hide Age to all non-staff (by a specific permission)

Started by tjbalon, May 26, 2018, 12:06:33 AM

Previous topic - Next topic

tjbalon

Hello,

We are making modifications to our website to comply with GDPR; one of which is we are removing personal data from user's public view. This includes the Age of a user. What would be the easiest way to make Age only show to staff members, for example the same people who can see an IP from profile view?

Thanks.

Sir Osis of Liver

Maybe something like this -

Profile.template.php



if ($context['user']['is_owner'] || $context['user']['is_admin'])
echo '
<dt>', $txt['age'], ':</dt>
<dd>', $context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' . $settings['images_url'] . '/cake.png" alt="" />' : ''), '</dd>';



Only owner and admins can see it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: