We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4757
    • 64 Posts
    To protect resources from clients accidentally screwing them up I created a resource group called "Admin Only"
    I add this resource group to my "Administrator" user group so I have access to them in both mgr and web contexts.

    My clients are setup in a user group called "Editors" and they have a modified version of the Administrator access policy.

    Here is what is happening.

    When a visitor views the site, pages in the Admin Only group are displayed on the front end.
    When I am logged in as Admin (super user) I can view all pages in both mgr and web context (front and backend)
    When I am logged in as an Editor user I can NOT view the pages in either mgr or web context.
    I need the Editors to be able to see these pages in the web context while they are logged in.
    I add a Resource Group policy for "Admin Only" to the Editor user group with the Minimum Role set to 10-Editor, Access Policy set to Resource, and the Context set to Web. The pages included in the Admin Only resource group are still not viewable by anyone logged in to the manager with the role of Editor.

    What am I doing wrong?
      • 3749
      • 24,544 Posts
      It’s hard to tell where you went wrong, but maybe this will help.

      You need to give back-end users context access to the manage context so they can log in to the Manager, and context access to the web context so they can see that context at all in the tree. Once you’ve done that, however, you should try to forget about it and think of the web context as the front end and the mgr context as the back end. So any rules you create using the web context will only affect the front end and will not restrict access in the Manager and vice versa.

      Context Access ACL entries (actually the attached policies) govern what a person can do in general (see resources, edit templates, add users, etc.) in that context (web or mgr). The policies should always be a subset of the Administrator policy.

      Hiding selected resources in the Manager is *always* done with Resource Group Access ACL entries with a policy that’s some subset of the Resource policy and a context of mgr.

      Hiding selected resources in the front end is *always* done with Resource Group Access ACL entries with a policy that’s some subset of the Resource policy and a context of web.

      Resource Group Access policies govern what a user can do with the resources in that resource group in the specified context (e.g., see them, edit them, save them, etc.).

      http://bobsguides.com/revolution-permissions.html (See especially the very last section, which is new.)

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 4757
        • 64 Posts
        Thanks.

        I thought I had set everything up correctly. And after your clarification I knew I had. I went in and removed the resource group access and then put them back in and it’s working now. I don’t know what I did differently if anything but it is working and I guess that’s the important part.

        Thanks again.

        Clayton Borah
        http://elixirbranding.com
          • 3749
          • 24,544 Posts
          Quote from: CBorah at Jan 27, 2011, 09:33 AM

          Thanks.
          I thought I had set everything up correctly. And after your clarification I knew I had. I went in and removed the resource group access and then put them back in and it’s working now. I don’t know what I did differently if anything but it is working and I guess that’s the important part.

          It sounds like a cache issue. I assume that you flushed permissions, but that’s not always enough. Some security settings are stored in the session and your browser may still have had the page in its cache.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting