views:

83

answers:

1

Hey Guys,

It seems like this should work but it doesnt.

Im logged in as a Power user and should see 1 report but I actually see 2.

<siteMapNode url="Reports" title="Reports"  description="" roles="Administrator, Power">
  <siteMapNode url="default.aspx" title="Default"  description="" roles="Administrator" />
  <siteMapNode url="custom.aspx" title="Custom"  description="" roles="Administrator, Power" />
</siteMapNode>

This should work right?

+3  A: 

Sorry if you've already checked this (you don't mention it) but have you enabled trimming in web.config?

securityTrimmingEnabled="true"

ASP.NET Site-Map Security Trimming on MSDN shows this 'example' web.config

<system.web>
<!-- …other configuration settings -->
  <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
    <providers>
      <add name="XmlSiteMapProvider"
        description="Default SiteMap provider."
        type="System.Web.XmlSiteMapProvider "
        siteMapFile="Web.sitemap"
        securityTrimmingEnabled="true" />
    </providers>
  </siteMap>
</system.web>

HTH

CraigD