More in this section
Forums / Bugs & Issues / Pages Link

Pages Link

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Sean
    Sean avatar
    271 posts
    31 May 2006
    28 May 2007
    Link to this post

    This is one is probably debateable as to whether or not it is a bug.  But basically I have set up a group of users that have Modify Create and View Permission on a subsection of their website.  It can be very misleading though that the users can't go to the Pages section because all the code checks the user has Create permissions for the RootPage only, before enabling the Pages link,  Surely this option should be enabled as long as they have at least one View, Create or Modify permission for any page in the site? 

    I have modified the Admin Default.aspx to this code, which enables the dashboard link.

     bool hasPerm = false
            foreach (IPage page in manager.GetPages()){ 
              Telerik.Cms.Security.PagePermission testPerm = new Telerik.Cms.Security.PagePermission(page); 
                if (testPerm.CheckDemand(Telerik.Cms.Security.PageRights.Create)  
                    || testPerm.CheckDemand(Telerik.Cms.Security.PageRights.Modify) 
                    || testPerm.CheckDemand(Telerik.Cms.Security.PageRights.View)) 
                    hasPerm =true
            if (pagesLi != null && pagesLink != null && !hasPerm) 
                pagesLi.Attributes["class"] += " dis"; 
                pagesLink.Attributes["href"] = "#"; 

    Please let me know if there is anything obviously wrong with this.  There is also the matter of the Menu, and when you are on the Pages page the Sitemap control is disabled.

  2. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    18 May 2013
    29 May 2007
    Link to this post
    Hi Sean,

    Thanks for reporting this issue. Actually, the pages link should be visible if you have any permission on any page. So a check for view permissions would be enough. The issue will be fixed for the next release.

    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered