Add "Administer any menu link" permission

Created on 22 March 2022, almost 3 years ago
Updated 3 December 2024, 19 days ago

Problem/Motivation

I have a use case where one type of user may administer any menu link (create/edit/delete) in any menu in the website, including menus that are yet to be created (by another user with the "Administrator"-role), but these users may not administer the menus themselves.

In Drupal Core, the only way to automatically give access to a newly created menu, is by granting that role the Administer menus and menu links permission. However, this permission gives access to administer both menu links and menus, which is not desired in my use case: I want my users to get automatic administer access to menu links only and not to menus.

Proposed resolution

Add a new permission that grant administer access to any menu links:

  • : Grant administer access to all menu links of all menus.

Remaining tasks

Update the tests to also cover this new permission.

User interface changes

-

API changes

-

Data model changes

-

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium michaelsoetaert

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024