Menu item create permission

Created on 16 May 2022, over 2 years ago
Updated 19 September 2024, 4 months ago

Problem/Motivation

The permission to create a new menu item add-menu-link in a content menu is group permissions create group_content_menu:menu_type_1 content+create group_content_menu:menu_type_2 content... for all menu types generated by GroupContentMenuRouteProvider::getCreatePermissions()
https://git.drupalcode.org/project/group_content_menu/-/blob/8.x-1.x/src...

The permission to edit an existing menu item edit-menu-link in a content menu is manage group_content_menu
https://git.drupalcode.org/project/group_content_menu/-/blob/8.x-1.x/src...

The group permission provider https://git.drupalcode.org/project/group_content_menu/-/blob/8.x-1.x/src... does not provide per content type create permissions.

Proposed resolution

For now it would seem correct that the add menu item also requires the existing manage group_content_menu permission.

With the work on 🐛 Menu item edit translation permission Needs work this might want to be changed and more permissions exposed to group? At the moment the two permissions access group content menu overview and manage group_content_menu that are displayed are under one of the subheading of one of the menu types, Group menu (Menu type 1 label), which adds to some additional confusion.

Remaining tasks

Alter route permission for creating an item.

Follow-up to specify how the permissions should be. Maybe a new issue as 🐛 Menu item edit translation permission Needs work seems to have got quite a lot in it.

📌 Task
Status

Postponed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands ekes

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

Merge Requests

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