Is there a way to configure discourse to show some user custom fields only to users with a certain trust level?
This is my use case:
We use our discourse instance for communicating with our customers. We store some informations (e.g. the customer’s ID) in custom user fields via API. Some of them we want to be displayed on the public user profile for everyone, others should only be visible only to people of our company.
I tried this preferences for “staff” (even if it’s not trust level specific), but they seem to do nothing?
(I read here that “public user custom fields” is meant for another purpose. I’m okay with that, because they are already configured at the custom field settings.)
Is there a way to hide some custom fields from users below a specific trust level? Or is there any way to alter the default behavior with a plug-in?