Support » Plugin: Restrict User Access - Membership Plugin with Force » Restriction doesn’t work

  • Resolved jules1234

    (@jules1234)


    Hello,
    for some reason the restriction I set up within the plugin doesn’t work. I need to set up the following restrictions and user-roles:

    • Not logged in users: Should be able to see the following pages: Home, Login, Registration, Impressum, Datenschutz as well as the Forum. If a user who isn’t logged in tries to visit any other page, he should be redirected to the login-page.
    • Logged in users (role = Subscriber): Should be able to see the same pages as not logged in users and furthermore the Pages: account, logout. If a user with Subscriber role tries to visit any other page, he should be redirected to the account-page.
    • Logged in users who already paid (role = Contributor): Should be able to see all pages.

    So I generated two access levels with the following settings:

    1. Access Level “Subscriber”: Within “Restrictions” I selected “Page ‘Account’ AND Page ‘Logout'”. Redirect to “Login” if they are trying to visit any other page. Members: Subscriber.
    2. Access Level “Contributor”: Within “Restrictions” I selected “News OR NOT Page ‘Login’ OR page ‘Home’ OR NOT page ‘Impressum’ OR NOT page ‘Datenschutz’. Extend Access Level “Subscriber”. Redirect to “Account” if they are trying to visit any other page. Members: Contributor.

    When I’m visiting the home of the website it already redirects to the login-page. But the homepage should be able to be seen from users who are not logged in. The same applies to the pages “Impressum” and “Datenschutz” as well as the forum.

    Which mistake did I make in setting up the plugin?

    Thank you and kind regards,
    Julia

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

    (@intoxstudio)

    Apologies for the delayed response here.

    It is likely that the OR NOT conditions are not giving the results as you expect.

    I suggest you create 3 levels:

    Paid:
    – Restrictions: NOT 404 Page (this essentially means that the whole site is locked down, except the 404 page)

    Not Logged-in:
    – Sync with Not-logged in users
    – Restrictions: Home, Login, Registration, Impressum, Datenschutz OR Forum

    Logged-in:
    – Sync with Subscriber role
    – Extend: Not Logged-in (to inherit restrictions)
    – Restrictions: account, logout

    Let me know if this works!

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