Secure menu options
I've been developing the sample (Beer House) website as I read. I've come across a problem that I can't resolve in chapter 4. On page 150, figure 4-14 shows screenshots of the menu with no user logged in (Admin option is missing) and Marco logged in (Admin option showing). I recognize this as a role function from the web.sitemap node. As instructed on page 151 my sitemapnode for Admin has 'roles="Administrators"'. Web.config is using a separate provider for the SiteMap as instructed on page 147, and Template.master has the controls per page 30 (no changes were instructed in the subsequent pages). My database has an Admin user assigned to the Administrators role. My website menu control is always showing the Admin option when I browse it. Please assume that I have double checked and cross-referenced with the sample code many times even going as far as copying the sample database and using it. This has been puzzling me for a couple of hours.
Does Marco or anyone have a solution to my problem? The sample site works beautifully.
|