Closed (fixed)
Project:
Ultimenu
Version:
8.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2016 at 14:48 UTC
Updated:
13 Oct 2016 at 06:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
erjuni commentedJust wanted to add that this is also what happens with '/user/login' and '/user/logout' links. Normally Drupal will show you 'user/login' link when you're logged out, and '/user/logout/' when you're logged in. In Ultimenu if you're logged in, the login menu still shows up, but as 'Inaccessible'.
Comment #3
gausarts commentedThanks for the report.
Attached to ignore those "inaccessible" links.
Comment #4
gausarts commentedThis part is incorrect.
Try adding a new _custom link (
/user/loginor/user/logout) outside Ultimenu, you will see the same behaviors.Comment #5
erjuni commentedThank you for the patch! Links are now showing/not showing appropriately as permitted.
Is there any special treatment for user with administrative privilege? Obviously an admin will have access to all pages and therefore all links, but in this case it is specifically for the 'login' and 'logout' links I mentioned. Currently (after patching), admins still see both 'login' and 'logout' links.
I may not be entirely accurate when describing the login/logout situation and mistakenly generalized a localized issue, but what I have tried is putting both the 'login' and 'logout' link on the built-in menu block in Zircon theme (as is, without ultimenu), and the links are shown appropriately (only shows 'log in' when logged out, and vice versa). And this works consistently for all users, whether anonymous, logged in users, or admins.
Comment #6
gausarts commentedThank you.
I haven't been able to reproduce the last issue, sorry.
I used any other public facing menu via Drupal UI.
In my case both links behave similarly either with or without Ultimenu:
Admin always sees 'login' link, only redirected to user page when clicked.
I also noticed, I cannot re-edit the link (
/user/login) once saved.But this one is more about core Drupal issue, anyway.
Since the links behave similarly when using other menus via Drupal UI, this is not specifically Ultimenu issue.
Feel free to provide steps to reproduce it using Drupal UI for just in case I missed the obvious.
Comment #8
gausarts commentedThe original issue is fixed. If you still have an issue with the other one, please create a new issue. And kindly provide steps to re-produce it if you do.
Committed. Thank you for contribution.