MvcTemplate.Components.Mvc.MvcSiteMapProvider.IsAuthorizedToView C# (CSharp) Méthode

IsAuthorizedToView() private méthode

private IsAuthorizedToView ( Int32 accountId, MvcTemplate.Components.Mvc.MvcSiteMapNode menu ) : System.Boolean
accountId System.Int32
menu MvcTemplate.Components.Mvc.MvcSiteMapNode
Résultat 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)