private IsAuthorizedToView ( |
||
accountId | ||
menu | MvcTemplate.Components.Mvc.MvcSiteMapNode | |
return | System.Boolean |
private Boolean IsAuthorizedToView(Int32? accountId, MvcSiteMapNode menu)
{
if (menu.Action == null) return true;
if (Authorization.Provider == null) return true;
return Authorization.Provider.IsAuthorizedFor(accountId, menu.Area, menu.Controller, menu.Action);
}
private Boolean IsEmpty(MvcSiteMapNode node)