We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    How does one make a page (web context only) protected? I've followed the RTFM three times, with and without the Wizard, and I might as well have not wasted the time. Different browser, same browser logged out of the Manager, no problem viewing the supposedly protected page.

    Does anybody know of reliable, up-to-date, step-by-step instructions on how to do this? Apparently I've contracted a serious case of stupidity.



      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 3749
      • 24,544 Posts
      1. Put the page in a Resource Group
      2. Create a Resource Group Access ACL entry connecting that Resource Group to the Administrator User Group with a context of 'web'

      Flush permissions
      Flush all sessions

      That should protect it from anyone outside of the Administrator group unless they have their own RG Access ACL entry granting them access.


        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
        • 3749
        • 24,544 Posts
        BTW, if there is an AllDocs group and a Resource Group Access ACL entry giving the anonymous user group access to it, that will defeat your attempts to hide it.
          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
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          No, this is just a bare localhost new installation with Login installed, to study working with users. For some reason I just can't get it to work.

          On resource, one resource group.

          One user group, definitely connected to the resource group, with "Resource" policy. At this point anonymous user shouldn't be able to view it, right?

          I've given the Anonymous group load-only permissions to the Protected resource group.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Ok. One more time, and it's working as expected now. I must have missed something last night. Probably had a mgr context or something somewhere.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org