• Resolved TheITJuggler

    (@theitjuggler)


    Firstly, I love this plugin. It made the creation of a Document Library very easy to setup.

    The issue I’m seeing is related to allowing a content section to be visible if a user belongs to either role1 or role2, and excluding everyone else. These two roles are extensions of another role called “prospect” – apart from the naming, all other access levels are the same for the two roles.

    The content is all contained on one page, with the required [restrict level=..] … [/restrict] blocks. If I restrict based on the individual levels (prospect, product1, product2), the content blocks show correctly. If I try to show a block based on being in either “product1” or “product2″ ([protect level=”product1,product2″] then then content block doesn’t show correctly.

    However, if I change the restrict block to be the underlying role for that level ([restrict role=”prod1,prod2”]) then the content block is shown correctly.

    Can you confirm if I’m understanding that the “restrict level=” is supposed to work allowing access for membership of multiple levels?

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this.

    It is currect that the “level” parameter currently does not support multiple levels separated with comma (like “roles”). It does, however, support “not a member of” by prefixing the name with !.
    I agree that it would be helpful if it also supported multiple levels, so I will try to include that in the next update.

    For now, if for example product2 extends level1, you only have to add product1 to the shortcode, and members of product2 will be able to see the content as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Restrict level=”role1,role2″ not working’ is closed to new replies.