Try Now
More in this section

Forums / Sitefinity SDK / Setting Permissions in Intranet Starter Kit

Setting Permissions in Intranet Starter Kit

2 posts, 0 answered
  1. Stacey
    Stacey avatar
    291 posts
    18 Oct 2012
    18 Aug 2011
    Link to this post
    I am looking for clarification on how the permissions are being set for the intranet starter kit.  Let me start by stating what I do know at this point.

    There is a page template called Intranet Main Template.  On this template there are two widget dropzones that are not being used.  One is for the page title/header and the other is for the main content.

    Now let's say I go to the page Events and I look at what is on there.  I see the page title and some sample content.  If I look at the permissions of the title it is set to allow everyone to view and to deny all anonymous users.  I look at the sample content and permissions are just set to allow everyone to view.

    Navigating, unauthenticated, to <domainname>/events shows me the message that I am not logged in and gives me the link to go log in.  I would expect that the page title would not show up due to how permissions were set, but I do not see how it is that the sample content is also hidden when it was not set any restrictions.

    I have looked at the page template and the only thing that strikes me odd is that the main content dropzone has a 100% layout element within it.  It does not seem possible to set permissions on layout elements via the UI so I am wondering if there is something happening in the code that is doing this?

    I found the SampleUtilites class library and saw some helper methods to add controls to pages with default permissions, but did not see where they were being used.

    I am attaching screenshots of the various spots I just talked about.  Any insight would be great.
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    20 Oct 2016
    23 Aug 2011
    Link to this post
    Hi Stacey,

    Setting permissions on widgets is aimed to hide them in the frontend. You should not get the log in in the frontend. You can not set permissions on layout elements, but you can set permissions on pages and page templates so that certain users will not be able to access or edit the layout elements.

    Stanislav Velikov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

2 posts, 0 answered