Deny menu access if section/access scheme unset

Created on 20 April 2023, about 1 year ago

Problem/Motivation

The project description states that this module "Ignores access rules if a menu is not assigned to a Workbench Access section." If you have one access scheme, and an editor assigned to the root of that scheme, that means there's no way to prevent them from having access to a menu. I don't want my editors to have access to, e.g., Administration, Tools, User menu, etc.

Proposed resolution

I propose one of two options for when a menu is not assigned an access scheme to be configurable:

  1. Allowing/denying access based on the existing 'Deny access to unassigned content' (deny_on_empty) permission from workbench_access.settings
  2. Adding a new configuration option to this module for that purpose.

User interface changes

For resolution #2, a new 'Deny access to unassigned menus' checkbox would be added to admin/config/workflow/workbench_access/menu_settings.

Data model changes

For resolution #2, a new config parameter workbench_menu_access.settings -> deny_on_empty.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ChaseOnTheWeb USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024