Menus Displayed Incorrectly in Gin Theme Despite Role-Based Access Restrictions

Created on 20 February 2025, about 2 months ago

Problem/Motivation

Steps to Reproduce:

Install a plain Drupal 11 site.
Install and enable the Gin contributed theme (gin module).
Set up role-based menu access for a user role (e.g., Super Admin) using a permissions module like Menu Per Role or Custom Module.
Log in as a Super Admin (or any restricted role).
Navigate to the Admin menu.
Observe that restricted menu items (e.g., "Content" under "Block" or "Taxonomy Term") are visible even though the user does not have access.
Click on the menu item (e.g., "Content" under "Block" or "Taxonomy Term").
You will receive an "Access Denied" message, confirming that the user does not have permission to view the page.
name : drupal/gin
descrip. : For a better Admin and Content Editor Experience.
keywords :
versions : * 4.0.3
type : drupal-theme
requires
drupal/core ^10 || ^11
drupal/gin_toolbar ^2.0

Expected Behavior:

Restricted menu items should not be displayed in the navigation for users who do not have access.

Actual Behavior:

Restricted menu items are displayed in the navigation, but clicking on them results in an "Access Denied" error.


Some of the menu items, such as the structure and others, do not have access, so the menu navigation is displaying images that are not clickable.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇮🇳India sasikala_d

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

Comments & Activities

Production build 0.71.5 2024