Show custom fields to Admin and Mods only?


Active member
I have a forum for a local club that takes private info like home address and phone number in a custom profile field. I want to make these custom profile fields available to mods and admins only. I tried editing member_view template by adding the following to the beginning of the custom_field_view section. Obviously I ended it with the proper < / xen:if>
<xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator}">
This seems like it would work except that it fails permissions testing. Any ideas?

Thanks in advance!


it's failing perm. check?

1. you can also add it to only the necessary fields. (just add the condition to the custom field v
alue Display HTML: field

2. are you sure it failed the perm check?


Active member
Yes, when I use Test Permissions, I can still see the custom fields even though the user I'm testing is not an admin OR mod.