• Resolved palm89

    (@palm89)


    Hi,
    I’m working on a website where:
    – logged out users should be able to visit all the pages;
    – the admin (logged in user, obviously) should be able to visit all the pages;
    – logged in users with role “employer” should be able to visit the pages dedicated to employers only;
    – logged in users with role “candidate” should be able to visit the pages dedicated to candidates only.

    At the moment, everything works except the admin part. I have tried all the combinations but with no success. The only way to make the admin part work is to place it on top, but then logged out users won’t see anything anymore.

    From highest priority to the lowest, my pyramid is:
    – logged out user restriction
    – admin restriction
    – logged in employer restriction
    – logged in candidate restriction

    How can I achieve my objective?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mark l chaves

    (@mlchaves)

    Hey @palm89,

    ​Thanks for reaching out. We’re sorry your restrictions aren’t working the way you want.

    Let’s assume you have an employer and a candidate tag for your posts. And, you’ll give employer-only posts the employer tag and candidate-only posts the candidate tag.

    From reading your use case, we think you only need 2 restrictions:

    1) Only an employer or administrator can see posts with the employer tag.

    2) Only a candidate or administrator can see posts with the candidate tag.

    Here’s a visual of what we set up.

    https://share.wppopupmaker.com/xQujAOdL

    Note that we need to add the administrator role to both restrictions because you want them to see all posts.

    We don’t need to have a separate restriction for administrators to see all pages because that’s the WordPress default for admins.

    We don’t need to have a separate one for logged-out folks either because the default is everyone can see public posts.

    We hope that helps.

    Let us know how that works out for you.

    Have a great weekend 🙂

    Mark

    • This reply was modified 4 years, 7 months ago by mark l chaves.
    Plugin Support mark l chaves

    (@mlchaves)

    Hey @palm89,

    We’re going to close this thread since we haven’t heard back from you.

    Feel free to post a new issue or contact us directly if you need help with anything else.

    https://code-atlantic.com/contact-us/

    Cheers 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘admin restriction’ is closed to new replies.