Questions tagged [securitytrimmingenabled]

5 questions
3
votes
3 answers

How does XmlSiteMapProvider check user to be in specified role?

I roll my own SiteMapProvider inheriting System.Web.XmlSiteMapProvider. I want to override logic of checking user to be in a role specified in siteMapNode's property roles: How…
1
vote
1 answer

MVCSiteMapProvider: non-clickable nodes with security trimming enabled

I am using MVCSiteMapProvider, v4.6.1 This is my issue: I have a section of my menu that is visible only to Administrators. I achieve this by enabling security trimming and decorating my controllers and/or controller methods to define the trimming…
0
votes
1 answer

roles based menu does not work, what am I doing wrong?

Here is the overview Create Memberships Create Roles Create Sitemap (modify to use roles="admin") Create Menu and bind web.sitemap to the menu, using new datasource from the menu smart tag Modify web.config to enable securityTrimmingEnabled It…
dave
  • 43
  • 1
  • 3
  • 6
0
votes
1 answer

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

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…
0
votes
1 answer

SecurityTrimming in asp.net SiteMap

i am facing strange issue in my site, i have menu, which i am handling with asp:menu and SiteMap, now i want to restrict menu's based on roles, so i am using securityTrimmingEnable="true" in web.config, now my problem is i have some menu items which…
Abbas
  • 4,948
  • 31
  • 95
  • 161