Why would you need this module?
There are times when you need to restrict the items users see without having completely separate menus. Enter Menu Item Role Access, this module allows you to control access to specific menu items.
What Menu Item Role Access does
This module adds an optional role field to menu items which lists all of the available roles. A user who has access to edit menu items will then be able to select the roles which have access to see this menu item.
What Menu Item Role Access doesn't do
This module will only allow you to add role access to menu items that are menu_link_content entities. Any system generated links should be controlled by permissions.
Installation
Install with Composer: composer require drupal/menu_item_role_access:^2.0
Feature Requests
I'm more than happy to take feature requests to help improve this module. If you have an idea of a feature that could benefit this module then please let me know.
Project information
- Module categories: Access Control, Site Structure
- 8,626 sites report using this module
- Created by LiamPower on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 ready
Development version: 8.x-2.x-dev updated 13 Dec 2023 at 16:18 UTC