Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Restrict viewing a live site to specific role View modes: 
User avatar
Member
Member
bdrenner-new42 - 10/29/2013 10:00:51 AM
   
Restrict viewing a live site to specific role
How do you restrict browsing a live site to a specific role?

Our content-staging Kentico instance has multiple sites. We want to give certain external parties access to browse particular sites. We want to create a "__SiteBrowser" role for each site, and then add roles to users to give them access.

Setting "requires authentication" on a site's root node gets us part of the way there, but it's not quite granular enough. We don't want all authenticated users to bowse a particular site, but only users of a certain role.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/1/2013 9:47:22 AM
   
RE:Restrict viewing a live site to specific role
Hello,

What about creating a custom macro in code of which you will check the user role and according to this you will perform an action? You can simply place this macro in your master page.

Best regards,
Martin Danko

User avatar
Member
Member
bdrenner-new42 - 12/2/2013 10:45:59 AM
   
RE:Restrict viewing a live site to specific role
That's a great idea. I thought there might be a way to do it purely through the CMS Desk or Site Manager, but that will work too. Thank you, Martin.