Search Results

Search found 3 results on 1 pages for 'isaccessibletouser'.

Page 1/1 | 1 

  • No reaction when IsAccessibleToUser returns false

    - by abatishchev
    I have enableSecurityTrimming=true and a custom SiteMapProvider inherited from built-in XmlSiteMapProvider and IsAccessibleForUser returns false for requested pag00e but it anyway opens. In the same time, breadcrumbs targeted the same sitemap doesn't create a menu. How to implemwnt peoper reaction?

    Read the article

  • How does IPrincipal gets its roles?

    - by abatishchev
    I need to get know how SiteMapProvider.IsAccessibleToUser() works. Built-in XmlSiteMapProvider calls HttpContext.User.IsInRole() which uses System.Security.Principal.GenericPrincipal in case of forms authentication. Where does the current user gets its roles? Which provider loads this kind of information? I want to overload it and use custom logic.

    Read the article

  • Is it possible to block a page from opening using securityTrimmingEnabled=true

    - by abatishchev
    I have custom SiteMapProvider and RoleProvider that works together properly: IsAccessibleToUser returns false if current user's role isn't mentioned in SiteMapNode.Roles for page requested. So breadcrumbs or menu doesn't show an item. But user still can type now showed URL directly and open a page. How can I block such behavior? Also I have next Web.config settings: <authorization> <allow roles="Admin,Manager,Client" /> <deny users="*" /> </authorization>

    Read the article

1