Try our conversational search powered by Generative AI!

Custom Menu Redirect to login page

Vote:
 

Hi everyone,

I have created a custom menu in episerver with UrlMenuItem :

return new UrlMenuItem(text, path, url)
{
      IsAvailable = (request) => PrincipalInfo.HasEditorAccess
};

When I'm logging with a user with WebEditor right I can see the menu item. But when I click to access this menu, I'm redirected to login form.

But when I'm logging with a user with Administrator right, I don't have this problem and I can access this menu.

Can someone help me to understand, why I can't access to this menu with only editor right ?

Thanks

#149185
May 25, 2016 17:29
Vote:
 

Where menu item is pointing? Could it be so - that target page is requiring proper user context and not menu item itself?

#149190
May 25, 2016 23:46
Vote:
 

Thanks for your answer, but I found the solution. In the controller of this item I had an Authorize attribut that need administrator right.

#149202
May 26, 2016 10:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.