Quantcast
Viewing all articles
Browse latest Browse all 106

How to display something to people not in a group?

Hi folks, So, I have been playing with permissions in my system and have a question regarding groups. It is quite common for me to hide fields so that only members of certain groups can see the field. The code looks like this: As you are aware, this code means that only members of the group "group_account_admin" can view the field "hidden_field". What I would like to know is what the inverse of this might be? So, what I want to do is if you are a member of the group, show one thing, otherwise show something else. Does anyone know how I might achieve this? I'm thinking something like the following: Many thanks, -Alex

Viewing all articles
Browse latest Browse all 106

Trending Articles