We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4273
    • 356 Posts
    How do these two relate to one another ?

    ie #1 you have a document (open to public) with check webuser snippet that checks to see if this user has access to the doc before it allows them access

    or

    ie #2 you have a document that clearly belongs to a web permissions group aka (private)

    is either fine or in example #1 would the doc still be by public if they guess the url ?

    I could see the page with the checkuser not giving them access but if you have an area with pages for a particular webuser group would these still be protected if they didn’t belong to a group ?
      SMF Bookmark Mod - check it out
      http://mods.simplemachines.org/index.php?mod=350
      • 27910
      • 48 Posts
      This is also a bit confusing to me, as I would like to have it so that web users can create / edit / delete documents themselves (those belonging to them, off coarse)
        cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill :: Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program :: Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
        SoftDux- The Leaders in Software
        Use the coupon: modx to get 20% off our packages
        • 4273
        • 356 Posts
        I think I found my answer, if a doc is not part of a web permissions group then it will be accessible by the url with ID to anyone. if this is true then not sure what the need is for checkuser snippet, if a document is part of a group then if the user is in that group they should be able to access that doc making checkuser obsolete ? ?

        on a similiar note, if you have a user setup with an ID to redirect to upon logging in this is yet another thing that would make the checkuser snippet not necessary.

        Anyone have anything to add ?
          SMF Bookmark Mod - check it out
          http://mods.simplemachines.org/index.php?mod=350
        • if this is true then not sure what the need is for checkuser snippet, if a document is part of a group then if the user is in that group they should be able to access that doc making checkuser obsolete ? ?
          Do you mean the MemberCheck snippet? If that’s the case, then the snippet should be used when you have a public page where only part of the page should be displayable to logged in users. (for example, a custom navigation menu)
            Garry Nutting
            Senior Developer
            MODX, LLC

            Email: [email protected]
            Twitter: @garryn
            Web: modx.com
            • 4273
            • 356 Posts
            ah I see that makes good sense in order to make the menu visble so they can click on it
              SMF Bookmark Mod - check it out
              http://mods.simplemachines.org/index.php?mod=350