Define access by block-list instead of allow-list

Created on 8 November 2024, 6 months ago

Problem/Motivation

Currently this module works with allow-lists for menus. This means that each time a site admin creates a menu also has to manually add grant for the newly created menu for the desired roles. This is an extra step for the site admin, in an completely different area of the admin UI, and therefore often easily forgotten.

Instead of explicitly allow-listing menus, I'd like to define a block-list for menus and allow access to all other menus. In my case almost all of my projects want to restrict access to admin, tools and account menu items, but allow editing all other menus.

Proposed resolution

Add a new option to negate the condition. Similar toggles exists in e.g. in core's block layout (set visibility per page and an option to negate the condition) or in paragraphs module (set access by entity bundle and an option to negate the selection).

Feature request
Status

Active

Version

1.0

Component

User interface

Created by

🇦🇹Austria hudri Austria

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

Comments & Activities

Production build 0.71.5 2024