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

Posted by abatishchev on Stack Overflow See other posts from Stack Overflow or by abatishchev
Published on 2010-05-24T18:00:25Z Indexed on 2010/05/24 18:11 UTC
Read the original article Hit count: 289

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>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about roleprovider