I found out that using the Active Directory Providers package, when making a navigation to show only menu items that you have access to, it breaks...
My code:
@foreach (var node in homePage.Children.Where("UmbracoNaviHide == false"))
{
if (!Umbraco.MemberHasAccess(node.Path))
{
continue;
}
//member has access, generate menu here
<li class="@(CurrentPage.Id == node.Id ? "current_page_item" : null)"><a href="@node.Url">@node.Name</a></li>
}
Works fine without the Active Directory Providers but with it, it doesn't, as I need this, I am also in need for a solution, but haven't been able yet to find one. If anyone here has a fix or is able to help me out?
Bug - custom navigation with AD membership
Hi there
I found out that using the Active Directory Providers package, when making a navigation to show only menu items that you have access to, it breaks...
My code:
Works fine without the Active Directory Providers but with it, it doesn't, as I need this, I am also in need for a solution, but haven't been able yet to find one. If anyone here has a fix or is able to help me out?
Thanks in advance!
Found a workaround for this issue. Explained it here: https://our.umbraco.org/forum/using-umbraco-and-getting-started/87587-navigation-based-on-access
Although it would be nice, and I assume better, if the
Umbraco.MemberHasAccess
could be used instead...Hi 3ijtKwijt
Maybe you could help me answer this https://our.umbraco.org/projects/developer-tools/active-directory-providers/questionssuggestions/87960-how-to-validate-user-in-custom-login-controller ??
Thanks :)
is working on a reply...