We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22840
    • 1,572 Posts
    Hi All,

    Using 2.1.3 and the latest login addon.

    I've set up a members section but am having a few problems accessing it with my test user wheras I am being redirected to the home page after logging in or trying to access the page directly once logged in. Heres what Ive done.

    1. Navigate to Content -> Resource Groups and created a group called Members

    2. Link your member-only resource to the Resource Group

    3. Created a User Group called Members

    To do this, went to Security -> Access Control Lists. clicked on the New User Group button.

    4. Add Resource Group access
    Move on to the "Resource Group Access" tab. This tab defines the resource groups your user group has access to. Three out of four fields are similar to the Context Access groups, namely the Context, Minimum Role and Access Policy. A new one is Resource Group which, as you probably guessed, defines the resource group the user group can access.

    The settings:

    Resource Group: whatever you named it, for example "Protected"
    Context: web
    Minimum role: Member (9999)
    Access Policy: Resource

    5. Add users to the user group
    Now add some users to the user group. You can do this by editing the user, or by going back to the Users tab and adding them from there. It will ask for the User Group, as well as the Role. As we assumed the Member role with an authority of 9999, you can simply use that one.

    6. Flush permissions
    Now that all settings are done, you will need to flush permissions (Security -> Flush Permissions) before you will see an effect. Also make sure that, if you go to test it front-end, you use a different browser all together. Don't use a different tab or browser window, as it will still use your Manager login to check for permissions.

    As I've said, when I log in with my new test user it logs me in but I can't navigate to the page, what have I missed ?

    Thanks

    This question has been answered by paulp. See the first response.

    • discuss.answer
      • 22840
      • 1,572 Posts
      Sorted it, the Access policy for my usergroup needed to be Context and not Resource