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.
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
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
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
is working on a reply...