Site structure
Version 4.x > Site structure > Navigation CheckPermissions=true only hiding first-level content? View modes: 
User avatar
Member
Member
dmco - 2/7/2010 11:43:19 PM
   
Navigation CheckPermissions=true only hiding first-level content?
I'm using a CMS list menu to display content for the top two levels of my site.

I have two role types: Manager and Employee

My content is set up as below

Folder
|_Content1 <- Security allows both Manager and Employee
|_Subcontent <-- Security allows Manager only

However, despite CheckPermissions=true on my CMSListMenu, the Subcontent menu item is still visible to the Employee. If the employee clicks the menu item of course, they get an access denied page which is a horrible user experience.

So, what's happening here?
Does CheckPermissions=true hide menu items only for the first level content?
If so, is there any way I can duplicate the menu-item hiding for subsequent levels?

Thanks very much

dmco

User avatar
Member
Member
dmco - 2/7/2010 11:46:54 PM
   
RE:Navigation CheckPermissions=true only hiding first-level content?
Sorry, folder structure above didn't keep the entered whitespace.

We have a folder, with one child "Content1", which itself has a child "Subcontent"

Folder
....|_Content1 <- Security allows both Manager and Employee
..........|__Subcontent <-- Security allows Manager only

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/8/2010 3:03:06 AM
   
RE:Navigation CheckPermissions=true only hiding first-level content?
Hi,

What are your documen level settings for access and security (Personalized content and Secured areas)?

Basically you need to allow both roles for the parent document and then break inheritance on child documents and deny the access for the user role you need to.

Best Regards,
Juraj Ondrus




User avatar
Member
Member
clarence-tomms.com - 1/18/2011 6:37:19 AM
   
RE:Navigation CheckPermissions=true only hiding first-level content?
Hi Juraj,

Is this feature available in the Free Edition? Can the Free Edition control the access to the menu like the corporate website whereby you have gold & silver partners. I want to allow gold to access a download site where else the silver partner cannot access. How do you go about doing it in the free edition?
Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/19/2011 3:53:05 AM
   
RE:Navigation CheckPermissions=true only hiding first-level content?
Hi,

I am afraid but document level permissions are not available in free edition.

In free edition, you can create a simple web part which will check the current user or her role using the API and in some decision statement you willd ecide whether you will let the user to see the page or you will perform some redirection to some "access denied" page.

Best regards,
Juraj Ondrus