Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293522

Option to show menu items despite lacking permission

$
0
0

Drupal 6 removed the ability to display menu items the user doesn't have access to. However, in some cases it is desirable to show a menu item even though the user doesn't have access to the menu item. For example, if you use an authentication mechanism that tries to acquire authentication when a 403 would be displayed, you still want to display the menu item so that users get a chance to provide credentials to log in.

  1. Use an access control module to restrict access to a node. I used tac_lite to demo.
  2. Add a node and a menu link to it on the main menu. Tag it with the tag configured in tac_lite that denies anonymous users viewing the node.
  3. See the link to the node in the main menu.
  4. Log out. Now you can't see the menu link.

This issue is about letting the menu link be visible despite access to the node being restricted.


Viewing all articles
Browse latest Browse all 293522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>