Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sitemap

Status
Not open for further replies.

swade61970

Programmer
Apr 2, 2003
19
US
I'm using sitemap but are not getting the results I expected. I have three groups defined.

admin
programmers
citymanager

One of the nodes in my menu has three options. I want the options to be available only for certain groups. However all of the groups can see all of the three menu options. Below is part of my web.sitemap.

web.sitemap

<siteMapNode title="Admin" roles="admin,citymanager,programmers" description="Admin">
<siteMapNode url="~/RoleAdmin/Review.aspx" title="Review Budget"
roles="admin,citymanager" description="Review Budget">
</siteMapNode>
<siteMapNode url="~/RoleAdmin/Admin.aspx" title="Miscelleanous"
roles="admin,programmers" description="Miscelleanous">
</siteMapNode>
<siteMapNode url="~/RoleAdmin/CompareReport.aspx" title="Compare Report"
roles="admin" description="Compare Report">
</siteMapNode>
</siteMapNode>

web.config

<location path="RoleAdmin">
<system.web>
<authorization>
<allow roles="admin" />
<allow roles="programmers" />
<allow roles="citymanager" />
<deny users="*" />
</authorization>
</system.web>
</location>
 
try enabling security trimming. securityTrimmingEnabled = true. I have done this in the web.config file, you should also be able to configure this in code as well.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top