I have 3 roles. Call them RoleA RoleB and RoleC. I have a Block which I want to show to users who AREN'T a particular role.
The situation is I have a block which I want Role A to not see. The simple solution would be go to block visibility settings, and enable all except Role A. This would probably work if users can only have 1 role. Ive set up my site so users can have more than one role. So some users have RoleA and RoleB permissions, some RoleA and RoleC, and some RoleB and RoleC. So if a user has RoleA permissions then they would not see the block, but if they have RoleA and RoleB permissions they will be able to see the block.
So the problem is, rather than setting which users I do want to see the block, I would like to set which users cant see the block.
I hope I make sence.
Any helps appreciated. Thank you.
Comments
You could use the PHP mode
You could use the PHP mode for visibility and code like