We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47430
    • 23 Posts
    I need help! I can’t understand the ACL in MODx well.
    I have several sites (contexts) in my college under the same Modx instance. Now I have a news Collection resource under each site. I want each site has its editors to write (but not to publish) news within the news Collection. How can I implement it? Can anyone give me an example?

    Let’s say, there is a role called “editor(200)”, I need the role can just edit the news within a Collection resource which under the context of “hr_department”. What should I do ? (There must be many many combination of the choices, I tried some, all is failed! Some combination will cause endless redirection after an editor logged in )


    context: mgr
    access policy: ?
    minimum role: ?

    context: web
    access policy: ?
    minimum role: ?

    context: hr_department
    access policy: ?
    minimum role: ?

    resource group: news (I have added the news Collection resource to it, and the resource group has been added to the user group)
    access policy: ?
    context: ?

    Thanks in advance!
      • 3749
      • 24,544 Posts
      See if this helps: http://bobsguides.com/controlling-access-to-resources-in-the-manager.html

      Also, for an understanding of how it all works, this is my best resource (it runs about 50 minutes): http://vimeo.com/54360208
        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
        • 47430
        • 23 Posts
        Thank you! Bob.
        Your site has been one of my favorite sites for a long time. You know what? My wife even made bread for me following your recipe from your site:) There are great tutorials there.
        Thank you for the great work.

        I followed your tutorial in the page you gave me:

        ...
        7. Use the following values in the ACL entry:

        Resource Group: Editables
        Context: mgr
        Minimum Role: Editor
        Policy: EditorResource

        8. Click on the "Save" button in the dialog
        9. Add another ACL entry using the following values:

        Resource Group: Editables
        Context: mgr
        Minimum Role: admin Super User
        Policy: Resource

        10. Click on the "Save" button in the dialog
        ...

        When I do the step 10, there is an error message: An ACL for that Resource Group already exists!

        Does it mean for a user group, a resource can just be added once?

        Thanks again!
          • 3749
          • 24,544 Posts
          Thanks for the kind words. smiley

          I've seen that error myself lately. TBH, I don't understand it either. There's no reason I know of that you shouldn't be able to have multiple ACL entries for the same Resource Group. I was able to get around it by deleting some existing ACL entries that I didn't need, but it's still a mystery to me.

          Maybe someone can enlighten us both.
            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