Workbench Access Menu Link
This module allows you to control access to menu items based on their hierarchy and by using Workbench Access. It enables granular permissions for navigating your site's menus.
The Workbench Access Menu Link module provides a Workbench Access hierarchy
plugin that uses Menu link fields to determine the access section for content.
It is intended for sites that place content in menu hierarchies through the
Menu Link module instead of Drupal core's menu settings.
Requirements
This module requires the following modules:
Installation
Install as you would normally install a contributed Drupal module. For further
information, see
Installing Drupal Modules.
If using Composer, run:
composer require drupal/wba_menu_linkThen enable the module with Drush or through the Drupal administrative UI:
drush en wba_menu_linkConfiguration
- Enable the Workbench Access Menu Link module.
- Create or edit a content type that should be controlled by Workbench Access.
- Add a field of type Menu link to that content type.
- Go to Administration » Configuration » Workflow » Workbench Access.
- Select "Menu (Menu link field based)" as the active access scheme.
- Select the menus that should be available for access control.
- Save the active scheme.
- Configure the content type to use the Menu link field for Workbench Access.
- Assign users or roles to the relevant menu sections.
When content is saved with a Menu link field value, Workbench Access uses that
menu link and its hierarchy to determine which users can access the content.