+1-888-365-2779
Try Now
More in this section

Forums / Security / Page Security Issue

Page Security Issue

4 posts, 0 answered
  1. Vikas Bhalotia
    Vikas Bhalotia avatar
    11 posts
    Registered:
    19 Jan 2010
    27 Mar 2010
    Link to this post
    Hi,

    I have created a new Page and set its permission such that for guest user ( everyone role ) all the permissions are denied and only authenticated member in a particular role could see it.  But I can see the page even as a guest user without login.

    Please help. Do I need to check the condition explicity onload event whether user is logged in the particular role or not or it is automatically handled by the sitefinity.

    Regards,
    Vikas
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Mar 2010
    Link to this post
    Hello Vikas Bhalotia,

    Have you set Anonymous access page property to deny? The permissions that are set over everyone role applies over each custom roles you have created and these permissions are valid only for authenticated users.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Jason Potter
    Jason Potter avatar
    10 posts
    Registered:
    07 Sep 2006
    22 Apr 2010
    Link to this post
    Hi There,

    Is there a way to change the Anonymous access radio button globally rather then going page by page.

    I have a situation where my client wants to build up the content in there website but not have it viewable to the public yet.  I was able to sort of do this by disabling access to the home page but if you were to guess a url then you could get inside the site avoiding the login.

    Any suggestions on how to do this.

    Regards
    Jason
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Apr 2010
    Link to this post
    Hello Jason Potter,

    You could use the pages API to set the property as you want for all pages.

    sample code

    var cmsManager = new CmsManager();
    IList l = cmsManager.GetPages();
    foreach (IPage p in l)
    {
        ICmsPage cmsPage = (ICmsPage)cmsManager.GetPage(p.ID, true);
        {
            cmsPage.DenyAnonymous = true;//
            cmsManager.SavePage(cmsPage);
        }
    }


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered