When giving 'anonymous' only permission to 'access administration pages' one does not expect to see a link to '/admin/structure' aka Structure. Clicking this link gives an access denied. That should not be.

| Comment | File | Size | Author |
|---|---|---|---|
| #3 | access administration pages.png.png | 179.39 KB | clemens.tolboom |
| #1 | drupal8.system-module.2096719-1.patch | 1.05 KB | clemens.tolboom |
| Screenshot 24-09-13 14:32.png | 28.77 KB | clemens.tolboom |
Comments
Comment #1
clemens.tolboomComment #2.0
clemens.tolboomUpdated issue summary.
Comment #2.1
clemens.tolboomRephrased summary.
Comment #3
clemens.tolboomI've created Graph API #2099247: Render the routings based on permissions. to visualize the _permission defined in system.routing.yml as I'm not sure what's wrong let alone fix the tests.
I don't get the differences between
For a bigger version of the graph see my blog http://build2be.com/content/routing-discovery-graph-api which is an svg.
Comment #3.0
clemens.tolboomAdded the word anonymous.
Comment #4
clemens.tolboomThe admin/index pages is even worse as it shows all System tasks.
It is provided by
\Drupal\system\Controller\AdminController::index()which callsfunction system_get_module_admin_tasks()that seems not to check for permissions.XREF: #699848: admin/by-task is confusing since it lacks links to config pages and looks similar to admin/config and friends
Comment #13
pameeela commentedDuplicate of #296693: Restrict access to empty top level administration pages