We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18809
    • 109 Posts
    Hello,
    I have a project in which my client need User Roles for Users and Different permissions for editing and managing different part of site. Like they have 4 BlogIt blogs in site and user1 can only edit blog-1 and user2 can only edit blog-2 and user3 can edit blog-1 and blog-2 and user4 can edit all blogs, more like an admin but not admin.

    How can I achieve this ? Suggest me Extra. smiley
      My Proudly Powerd By Modx site - http://irresistiblemt.in smiley Its simple site but its made in best CMS.
      • 3749
      • 24,544 Posts
      This is complicated. There's no extra for it, but off the top of my head, I think this would do it:

      Create four user groups and four resource groups called: blog1, blog2, blog3, blog4.

      Connect each resource group to its matching user group with a Resource Group Access ACL entry in the 'mgr' context (assuming that BlogIt runs in the Manager), and a policy of 'Resource,' (or a policy based on it that you've created if you want them to have fewer permissions).

      Drag each blog's top level container into the appropriate group. I don't think the children need to be in there, but I'm not sure.

      Create a role blogEditor with an authority level of 15.

      Use that role for the following steps:

      Put user1 in the blog1 User Group
      Put user2 in the blog2 User Group
      Put user3 in the blog1 and blog2 User Groups
      Put user4 in all four blog user groups

      You might also want to put yourself all four blog user groups.

      Whether this works may depend on if and how BlogIt enforces permissions. If it honors MODX permissions or lets MODX do it, it should work.




        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
        • 18809
        • 109 Posts
        Thanks alot sir. Sorry for late reply. I am trying this right now. Then I will update you soon. smiley
        Thank you!
          My Proudly Powerd By Modx site - http://irresistiblemt.in smiley Its simple site but its made in best CMS.
          • 3749
          • 24,544 Posts
          Don't thank me until it works. wink

          Be sure to flush permissions and log out all users after making any changes and before testing.
            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