Administrative task links provided by Admin Toolbar Extra Tools should not show at /admin/index for users without toolbar access

Created on 22 July 2025, 8 days ago

Problem/Motivation

Administrative task links provided by Admin Toolbar Extra Tools (admin_toolbar_tools) show up for users who do not have access to the toolbar at

/admin/index

Steps to reproduce

  • Visit /admin/index as a user with "Use the administration pages" permission and "Administer menus and menu links" permission but not "Use the toolbar" or "Use Admin Toolbar search" permissions.
  • See a bunch of "Add link", "Add link"… links among others under the "Admin Toolbar Extra Tools" heading, even though these are not useful here without context for any user and especially not for you without ever having the chance to see them in context in the admin toolbar.

Proposed resolution

Don't show anything from "Admin Toolbar Extra Tools" on the Administration Index page.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.6

Component

Code

Created by

🇺🇸United States mlncn Minneapolis, MN, USA

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

Comments & Activities

  • Issue created by @mlncn
  • 🇮🇳India arunsahijpal

    Working on it.

  • 🇮🇳India arunsahijpal

    Hi @mlncn,
    I've tried to reproduce this issue with these steps :

    Enabled Admin toolbar 3.6.1
    Loged in as a user with:
    1. “Use the administration pages”
    2. “Administer menus and menu links”
    ❌ “Use the toolbar”
    ❌ “Use Admin Toolbar search”
    3. Visited /admin/index

    But there was no option like "Add link" or "Admin Toolbar Extra Tools"
    attaching ss for reference.
    Please let me know if I am missing something here.

    Thanks,
    Arun

  • 🇺🇸United States mlncn Minneapolis, MN, USA

    Thanks Arun!

    Did you enable Admin Toolbar Extra Tools? drush -y en admin_toolbar_tools

  • @arunsahijpal opened merge request.
Production build 0.71.5 2024