Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • marthin 87 posts 106 karma points
    Feb 01, 2010 @ 13:10
    marthin
    0

    Setting user access on nodes

    Hi,

    iv created a custom section with a tree and everything just as it's done in umbraco.tv I have question though. The nodes that are shown in my tree need to check for user access on every node and my nodes come from a custom DB.

    like this:

    Group Company1 has users person1, person 2

    Group Company2 has users usr1, usr2

    If Company1 group looks at the tree it should show

    - Register

         - Company 1

             - Support Material

                  - Some other stuff

             - FAQ

     

    If Company 2 looks at the tree ut should show:

     

    - Register

         - Company 2

             - Test folder

                  - items

             - Test folder 2

     

    So, iv done this implementation today by creating my own DB tables with companies and a user in Umbraco DB will always be in a company. But the problem is that iv create my own node table. If i whant to change this to use the original nodes table in Umbraco DB is there a way to set viewing permissions on a single node level? The reason for doing this change is to be able to use all the builtin functions for nodes and events and stuff.

     

    Thx for any help!

    Best Regards

    Marthin

     

     

     

     

  • Chris Koiak 700 posts 2626 karma points
    Feb 01, 2010 @ 20:13
    Chris Koiak
    0

    Hi Marthin,

    Set up a blank Umbraco instance and install http://our.umbraco.org/projects/clientarea. This will install a website that is configured to to exactly what you describe.

    The code is open source, so feel free to read through it an use any parts you want.

    Right click all the content nodes and check how the 'Public Access' permissions have been set.

    Cheers,

    Chris

  • marthin 87 posts 106 karma points
    Feb 02, 2010 @ 08:48
    marthin
    0

    Hi,

    Very nice package! But this i a project I have to do my self and i have to use a clean installation of Umbraco =(.

    Got any other comments or recommendations?

    Best Regards

    /Marthin

Please Sign in or register to post replies

Write your reply to:

Draft