We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53939
    • 18 Posts
    Quote from: BobRay at Dec 02, 2017, 09:23 PM
    The user's rights depend on the Policy specified in the Context Access ACL entry for the user's User Group. If the user belongs to no User Group, the rights of the (anonymous) user apply. The Settings tab has nothing to do with user permissions.

    It's very unlikely, imo, that this has anything to do with the server.

    Is the user a member of the Administrator group? That would explain it.
    BobRay, did you see links to gyazo.com, that i wrote above?
    It's the user settings wink
      • 3749
      • 24,544 Posts
      I saw your image of the User settings, but as I said, User Settings have nothing to do with permissions. User Settings override System Settings, but no System Setting are involved in the permission system, which depends entirely on the permissions in any Policies specified in ACL entries.

      Maybe I'm misunderstanding you.
        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
        • 4172
        • 5,888 Posts
        @Bob
        as far as I can see, he didn't give the user in question absolutely no usergroup, so no permissions.
        So, he shouldn't be able to login into the mgr at all.

        He seems to have this issue only at his VPS not at other installations.
        Strange issue.

        Could it be, that your anonymous usergroup has admin - permissions, @salamander?

          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 3749
          • 24,544 Posts
          @Bruno That's a good thought. I guess it's also remotely possible that MODX thinks it's in CLI mode.

          @salamander can you go to System (gear icon) -> Access Control Lists - User Groups and User Tab, right-click on the (anonymous) user group and select "Update User Group". Show us a screenshot of the "Context Access" tab (tabs are on the left in this panel).

            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
            • 53939
            • 18 Posts
            Anonymous usergroup has these settings:
            https://gyazo.com/82f95d9e236bc7cb6e96435b60313be3
              • 53939
              • 18 Posts
              I made backup of my site (files & db), installed it on my local server, the access permission rights worked correctly (unlike the VPS).

              I don't know whether this is related or not, but there is one more error on both servers.
              When I change the system settings (e.g. site_name or manager_language), they are not automatically applied.
              I must delete content of folder "/core/cache", only then system settings is updated.

              Does anyone have other ideas what's wrong with my server or modx configuration?
                • 3749
                • 24,544 Posts
                This is a long shot, but try creating a page (call it "Test" -- without the quotes). Put this tag on the page:

                [[!Test]]


                Create a snippet called Test with this code:

                $output= '';
                
                if (php_sapi_name() == 'cli') {
                      $output = "In CLI mode";
                } else {
                     $output = "NOT in CLI mode";
                }
                return $output;
                


                Then visit the Test resource and see what it displays.
                  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
                  • 53939
                  • 18 Posts
                  @BobRay, result of the test - "NOT in CLI mode".
                  By the way here is first page of phpinfo :
                  https://gyazo.com/d0da2850e1706321f115a9b0e773bf05
                    • 53939
                    • 18 Posts
                    I forgot to say about other problem on my VPS that probably will help to solve all the problem with access permission and system settings!
                    Two week ago (when I was still quite happy with my life) session in the admin panel became very short (1 minute).
                    I found parameter in system settings which called "session_cookie_lifetime", changed it. NOTHING.
                    Then I changed "session_gc_maxlifetime" - the same result.
                    I deleted /core/cache/* - again NOTHING.
                    And only then I changed these parameters in php.ini, session time became normal.
                    In this way I have php.ini which don't give me chance to redefine settings...
                    Maybe I don't understand something, but when I installed new copy of Modx few day ago, there was no errors/warnings.
                    So what did I do wrong?
                      • 3749
                      • 24,544 Posts
                      Sorry, I'm stumped.
                        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