I am trying to list the nodes under "Documents". The shared one is for all members and the other ones, are only for the individual user. Eg. Ryan wont see Sophies documents.
Here is the structure of the nodes.
Home - access for all members
- News
- Images
- Calendar
- Documents
--- Shared - no protection other than from the top level node
----- node
----- node
----- node
--- Ryan - Added protection for first group
----- node
----- node
----- node
--- Sophie - Added protection for second group
----- node
----- node
----- node
My partial view rendes fine, when the "if(childPage.HasAccess())" is not there, but fails when there. It i my first time playing with .HasAccess so I am learning! :-)
Trying to list protected nodes but fails
Hi
I am trying to list the nodes under "Documents". The shared one is for all members and the other ones, are only for the individual user. Eg. Ryan wont see Sophies documents.
Here is the structure of the nodes.
My partial view rendes fine, when the "if(childPage.HasAccess())" is not there, but fails when there. It i my first time playing with .HasAccess so I am learning! :-)
Can you guys see, where I am going wrong?
Thank you for your help! :-)
Daniel
I found the solution! :-)
is working on a reply...