- Issue created by @aarnau
- 🇩🇪Germany jurgenhaas Gottmadingen
Is this about the toolbar module in core? If so, that's deprecated and will be removed soon.
Beyond that, I'm not sure this is a theme issue. Gin doesn't provide the content, it styles the available content. So, if there's a link that's provided by a module that shouldn't be there, the issue should probably reported there. Or am I missing something?
- 🇪🇸Spain aarnau
Thanks for the quick reply and for the clarification.
To confirm, this issue occurs when using the Gin Admin Theme and its associated "Gin Toolbar". I am not using the deprecated core "Toolbar" module.
You are right that themes usually only style content. However, I can confirm the problem is specific to Gin because it only appears when the Gin Toolbar is enabled. When I switch back to the default Drupal toolbar (from the core "Toolbar" module, for testing purposes), the access checks work correctly and the inaccessible links do not appear.
Based on this, I investigated further and located the source of the problem in the `GinNavigation.php` class. To help resolve this, I have created a Merge Request with a proposed fix.
You can review the changes here: https://git.drupalcode.org/project/gin/-/merge_requests/634/diffs
Please let me know if you have any feedback on the solution. Thanks again for your help!
- 🇩🇪Germany jurgenhaas Gottmadingen
Maybe some clarification required:
When you're on Gin version 4 together with Gin Toolbar 2, this is also using the toolbar module from core as that's declared as a dependency. Only in Drupal core 11.2 together with Gin 5 and Gin Toolbar 3, the core toolbar is no longer required. Instead, the navigation module from core is taking over both the left and the top toolbar.
What we have in Gin 4 is an experimental implementation of that navigation, which is no redundant as navigation module in core has matured, and Gin will remove its experimental implementation as a result of that.