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

    We have a custom user (editor) with an custom Acces policy. (based on administrator template)
    Now when the client wants to drag a resource in the menutree in an other order he gets an 'error saving resource' message. the administrator can do this just fine.
    So my guess is its the acces policy.
    Which permission do i need in my policy to achieve that? i allready included 'Basic save permission'.

    Rdg

    MODX 2.2.4-pl [ed. note: rdaneeel last edited this post 11 years, 11 months ago.]
      • 24629
      • 370 Posts
      If someone in the future stumbles upon the same problem, here is what we found.

      Our custom usergroup ('editor') was given acces to a specific resourcegroup ('editorDocuments') there weren't any documents in this group yet.
      This was done with an acces-policy 'load, list view'. When we changed this to 'Object' the problem was gone.

      What happend was this; due to a bug in MODX ( http://tracker.modx.com/issues/4918 ) where the tree can only be sorted when the usr has SAVE permission on ALL resources in the tree.
      The weird part in our case was that we had no documents in the affected resourcegroup. the mere fact that it existed was enough to block SAVE permission somewhere, thus we couldn't re-order the tree.
      Changing the menuindex manualy did work. Which is illogical because you would think that also in that case several resources needed to be adjusted

      Rdg
        • 3749
        • 24,544 Posts
        Nice catch. Thanks for reporting it. smiley


        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          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