Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
When contrib has a permission and a tab that is less restrictive than the default tab. User sees the default tab (they do not have permission to go to) and when they click on it, they get permission denied. This is confusing and annoying to show people things they do not have permission to do.
Proposed resolution
Complicated. It is the *default* tab. What should we do?
Comments
Comment #1
dawehnerAfter a little bit of research I realized the problem is basically that the new routing system interacts badly with the old local task system.
The "edit view" local task looks like:
This entry does not contain a route name, so checking access to the local task link via the new route system does not work.
PS: #2095139: Checking for the active tab should use raw variables. would be cool to get in as it is needed for all config entities.