Does Block Visibility Support Dynamic Role-Based Conditions
-
We’re looking to use Block Visibility to control content visibility based on user roles, but we have a slightly different requirement. Instead of assigning a new role, we want to create a virtual role where users qualify dynamically if they have at least one of several specific roles.
For example, we have these user roles:
- Administrator
- Individual Membership (USA)
- Individual Membership (CAN/MEX)
- Individual Membership (WORLD)
- Corporate Membership (USA)
We want to display blocks to users who have at least one of these roles, but instead of manually assigning each role or creating a new role, we want to check dynamically whether a user qualifies when determining block visibility.
Does Block Visibility support this kind of dynamic role-based condition? If not, is there a recommended workaround?
- You must be logged in to reply to this topic.