• Resolved magichat

    (@magichat)


    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?

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @magichat,

    I apologize for the delayed reply. Block Visibilty does not support this kind of dynamic role-based conditions. That said, the codebase is available on GitHub if you would like to build your own extension or fork. There’s a demo add-on plugin that can be used as a guide.

    Best,
    Nick

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.