We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17987
    • 9 Posts
    hi, I want to give permission to users to edit a single document i.e. they should be able to edit the page for which they have been given permisssion. iam unable to do that. i created a role but iam unable to assign it to any user. please help.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      There are two types of users, manager users and web users. You can only assign roles to manager users.

      You need to create manager user groups and document groups, and assign the manager user groups to the document groups as appropriate. This is done in Security -> Manager permissions.

      In Security -> Roles, create your role, as you have done.

      Then in Security -> Manager Users, create your manager user and assign him the role you created.

      Now, all of your documents will have to be assigned to a document group that the user in question does NOT have access to, and assign the document you want him to access in the document group assigned to his manager user group.

      And please do not cross-post to multiple topics.
        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
        • 7231
        • 4,205 Posts
        Now, all of your documents will have to be assigned to a document group that the user in question does NOT have access to, and assign the document you want him to access in the document group assigned to his manager user group.
        This is the tricky part, it is not as easy as assigning a doc to a group, you also need to make all other docs ’private’ in order to isolate one page. Remember that you can use the Document Manager module to change the permissions on multiple documents (this saved my hide recently).
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]