- Issue created by @lostcarpark
- 🇬🇧United Kingdom omahm Belfast
I have the same issue with a custom access handler that extends NodeAccessControlHandler. The custom handler restricts create access to certain content types and this works when viewing /node/add, but the content types still appear in the admin toolbar Content -> add dropdown.
- 🇺🇸United States w01f
Seeing this as well for regular authenticated users that want to make use of the toolbar for easy (permitted) content adding and editing, but don't need to see Configuration, Reports, etc. that they only get "Access denied" for anyway.
Wondering if this can/will be fixed, or if the idea is to wait and swap to the new core admin toolbar coming in... 11?
- 🇺🇸United States gslexie
I stumbled across this while searching for something else and I'm pretty sure this issue has been resolved in Core 10.2 by https://www.drupal.org/node/296693 → . There is also a submodule included in admin_toolbar called admin_toolbar_links_access_filter that was supposed to workaround the issue for earlier versions.
- 🇺🇸United States w01f
We figured out the issue we were experiencing - both System permissions "Link to any page" or "Use the site in maintenance mode" will override the access limitations if granted to a role. Removing both of these allows access to work as expected.