We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41970
    • 79 Posts
    I hope you can help me again with an issue I have with a new site I built with modx.
    I set up new users for the client, with limited rights, and only now I noticed that if I am not logged into the manager, I am not able to see the site properly, the links are not working etc.
    What do I have to change in the settings to correct this? Does it have to do with the context? I would be grateful for some advise how to set this up properly.

    This is the website: http://www.grenadamcintyrebros.com/modx/
      • 21078
      • 77 Posts
      Actually the links are working but the pages return a "404 Not Found" if you look at the http response headers. I guess your anonymous users don't have the permission to load the resource group and context?! You should take a look at your permission settings and correct them ... and don't forget to flush the permissions.
        L.net Web Solutions
        Professional webdesign and development with MODX and WordPress.
        • 7222
        • 20 Posts
        A good start to see what's happening is to create a custom error page. Then in your site settings ensure that this new error/404 page is set to use this new resource.

        Then it'd be easier to see what's happening without looking at the headers.

        It could be a number of things: my usual mistake though is a badly formed template, often calling a snippet incorrectly and thus causing an 'error' page to be shown instead of the broken template.
          • 3109 ☆ A M B ☆
          • 894 Posts
          Did you put these resources in a resource group and applied permissions to a specific user group? If so it's a permissions issue it not it might be something else.

          Start by making a custom 404 page like @Devolute suggested so it can be easier to debug and help you solve your issue.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 41970
            • 79 Posts
            Thank you for all your responses.

            I am still totally confused of how to set up the Access Controls. I might have messed up something there. This is how it's set up right now:

            I have a User Group "Administrator" and one "Content Editor", where I belong to Administrator, with 0 as the rights settings.
            Under "Context Access", I have set up mgr and web contexts for both groups, with minimum roles Super Users-0. Is this the problem?
            How do I set up the rights for the anonymous users? Currently under this user group, there only is the web context set up, with min. role Member-9999, and Access Policy Load, List and View.
              • 3109 ☆ A M B ☆
              • 894 Posts
              Did you create any resource groups and move resources into them?
                Benjamin Marte
                Interactive Media Developer
                Follow Me on Twitter | Visit my site | Learn MODX
                • 41970
                • 79 Posts
                Yes I did, but all the resources are added for the Administrator users (the one I am using). What am I still doing wrong?
                Is there any way to reset all access controls to the default settings, so I can start setting those up from scratch again?
                  • 3109 ☆ A M B ☆
                  • 894 Posts
                  You only need to put the resources you want protected in the resource group if you put all resources in the resource group they will be hidden from the anonymous user group, you can check out my ACL tutorial it might help clarify some things for you.

                  MODX permissions are all based on allow/deny what this means is you have to strictly deny access to any resource you do not want users accessing otherwise the default permission will be applied which is allow.

                  I have to make an updated tutorial that is much easier to implement than this one.
                    Benjamin Marte
                    Interactive Media Developer
                    Follow Me on Twitter | Visit my site | Learn MODX
                    • 41970
                    • 79 Posts
                    Quote from: benmarte at Jul 23, 2013, 01:50 PM
                    You only need to put the resources you want protected in the resource group if you put all resources in the resource group they will be hidden from the anonymous user group, you can check out my ACL tutorial it might help clarify some things for you.

                    MODX permissions are all based on allow/deny what this means is you have to strictly deny access to any resource you do not want users accessing otherwise the default permission will be applied which is allow.

                    I have to make an updated tutorial that is much easier to implement than this one.


                    Thank you for this info! So if I understand you correctly, the resources I add to the resource groups, are then being hidden from the anonymous user? I think I totally misunderstood the purpose of it, I thought by adding the resources I give that resource group access to it, not the other way round. I am so confused.............
                      • 3109 ☆ A M B ☆
                      • 894 Posts
                      Let's say you create a resource group for admins you would need to place whatever resources you want to be accessible by admins only in this resource group.

                      Then you go to Security > Access Controls right click on your user group, select update user group and go into the Resource Group Access tab here you specify if this user group will have access to the resources in this resource group.

                      ACL's are very confusing at first but once you get the hang of it you can do some very powerful stuff with it I have sites where clients never log into the manager and update the site via, manage users and upload files via the front end.
                        Benjamin Marte
                        Interactive Media Developer
                        Follow Me on Twitter | Visit my site | Learn MODX