This project is read-only.

IsAccessibleToUser doesn't seem to pick up the user's role

Topics: Business Logic Layer
May 18, 2009 at 3:31 AM

hi all,

I changed my web.sitemap file to remove the Editors role from some of the pages I do not wish the editors to see, but the links still appear in the Admin widget.  Any ideas out there?

Thank you in advance!



May 18, 2009 at 3:33 AM

oh yes, and they CAN visit the page as well.

May 18, 2009 at 7:55 AM

You'll also want to add/remove roles in the Web.config file in the Admin\Pages folder.  This file has the final say in who can access what.

May 18, 2009 at 2:00 PM

Thanks for that.  I completely missed it.  What, then does the roles in the web.sitemap do for me?


May 19, 2009 at 2:45 AM

The roles in Web.sitemap control what items in the menu each user can see, depending on what role their in.  So, it's really just to control the menu, and not access to those pages.

Jun 20, 2009 at 3:59 PM

Hi Ben,

Sorry for taking so long to get back to you.  I think there is a bug somewhere here because I had to make the changes in both spots for it to work correctly.  Sorry I don't have any more research to give you.


Jun 20, 2009 at 10:48 PM

Hi Steven.  Making changes in both places is normal.  The sitemap controls what menu items each role can see, and the web.config file controls which pages each role can access.