We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17249 ☆ A M B ☆
    • 165 Posts
    Need a bit of help with this, here’s the setting:

    How to limit an ’Editor’ to manage only a group of files?
    He shouldn’t be able to see any other resources than this folder childs in the mgr.
    All visitors should be able to see this content from the web.

    Example:

    Home page
    Calendar page
    News page
    News 1
    News 2
    News 3

    Contact page

    How to make the editor to be able to create new content under the News Section or edit, yet keep this content visible to all visitors?
    Its a very common setting i think, but got a bit confused. Believe me, i’ve tried everything smiley

    Checked the official docs, some of Bob’s tutorials and some forum posts.
    I think i ’got’ the permission system essentials, but got stuck in a point.

    I’m aware of the browser sessions, front end, back end logging etc.
    Used different browsers for my tests. Essentially, when i get the permissions right for the Editor to manage only the News content in the mgr then normal visitors can’t see this content in the front end because its protected. As soon as i remove the News content from a Resource group then web users see the content but Editor is able to edit ALL documents in the mgr. Please help me with a fresh example approach to solve this.

    I’m using 2.0.8-pl

    Thanks in advance.






      • 3749
      • 24,544 Posts
      I think you’re very close to having it. The secret is that you want to have *no* Resource Group Access ACL entries with a context of ’web’. Having those protects the resources in the front end, which you don’t want. Change those to ’mgr’ (and delete any duplicates) and you should have what you want.

      All your Resource Group Access ACL entries should have a context of ’mgr’ -- that will protect them in the Manager, but will have no affect on what’s available in the front end.

      The Manager user needs a Context Access ACL entry with a context of ’web’ in order to be able to see the resources in that context in the tree. In all other cases, the ’web’ context refers to the front end, so it should never be used when limiting access in the Manager.

      As for which policy templates to duplicate, this section of my Permissions page spells it out (I hope):


      • Policies used in Context Access ACL entries should be based on the standard Administrator Policy Template.
      • Policies used in Resource Group Access ACL entries should be based on the standard Resource Policy Template.
      • Policies used in Element Category Access ACL entries should be based on the standard Element Policy Template.

      Of course that assumes that you know what kind of ACL entry you’re going to be creating, but by the time you get around to duplicating policy templates, you should have a sense of that. Here’s the short version of what you’d use when:


      • Limiting what member of a user group can do in general in the Manager: Context Access ACL entries.
      • Hiding specific resources (in a resource group) from members of a user group or limiting what users in that group can do with them: Resource Group Access ACL entries.
      • Hiding specific elements (in a category) from members of a user group or limiting what users in that group can do with them: Element Category Access ACL entries.

      BTW, there’s usually no pressing reason to duplicate those templates, since you can grant or deny any of the permissions in the standard policy templates. The only reasons for duplicating one are:

      1. You’re tired of wading through the long list of permissions that you’ll never grant to a particular group of users -- You can remove them from your duplicate policy template and never see them again.

      2. You want to add some custom permissions to the list. In that case you don’t want to modify the standard policy and need to create a duplicate policy template. Usually, that’s only necessary if you want to use custom permissions to hide individual Top Menu items. In that case, you’d be duplicating the standard Administrator policy template.
        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
        • 17249 ☆ A M B ☆
        • 165 Posts
        Wow, really appreciate the response in such an explanatory way.
        Thanks for taking your time to clarify this concepts. The destiny is looking bright now smiley
        Will post the results when done.

        Infinite thanks.

        PD: Did read your post two days ago and was able to grasp on the concepts.
        I think the ’secret’ will do, that’s the part i think i have different.
        Again, thanks a lot.
          • 17249 ☆ A M B ☆
          • 165 Posts
          Happy ending!

          Finally and easily got the thing done with the help provided.
          Attached is a composite of the steps i’ve made.
          Hope it helps for new users.


          The purpose was to give manager access to an editor so he can edit only a group of pages yet keeping all this content visible to all visitors in the web.
          I used a folder Blog (with blog post resources) for my tests.


          Thanks a lot Bob.

            • 3749
            • 24,544 Posts
            That looks fantastic. Do you have it up somewhere? I’d like to put a link to it on the permissions page.
              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
              • 17249 ☆ A M B ☆
              • 165 Posts
                • 3749
                • 24,544 Posts
                It up at Bob’s Guides. Thanks!
                  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
                  • 17249 ☆ A M B ☆
                  • 165 Posts
                  Good to see it can be of some help. Nice!