We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37110
    • 72 Posts
    Hello Guys,

    I have a strange bug.
    A user with the administrator policy can't create a new resource. The user isn't sudo.

    After some debugging i found the file modaccessibleobject.class.php and looked to the function "checkPolicy".
    I've added there a dirty (temporary) hack.
    if($criteria == 'administrator') return true;
    MODX want the administrator permission but it isn't inside the policy.

    Someone knows a nice fix for that?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Check the policy connected to the group. Make sure it has permissions to create resources. Does this involve multiple contexts?
        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
        • 37110
        • 72 Posts
        I've added the administrator policy on all context and selected all permissions.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Does this happen only when trying to create a new resource in the Tree top-level? Check the udperms_allowroot setting in System Settings.
            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
            • 37110
            • 72 Posts
            It happens on every level. Only when i'm creating a resource, everything else works perfectly.

            Already created a new context but the same problem.
            Created a new user with a import of permissions from an existing and working site but the same problem.