Wrong permission for ai.settings.menu route

Created on 25 August 2025, 7 days ago

Problem/Motivation

For some reasons to access the main AI settings form (route /admin/config/ai) you'll need the administer site configuration while administer ai, as its descriptions states:

Administer AI settings

Also administer ai is used for the others.

I came to this while trying to give a role all tasks related to AI administration without giving too much outside UI. But it turned out that, with the current route permission, I'll have to give them more.

Proposed resolution

Change route def to:

ai.settings.menu:
  path: '/admin/config/ai'
  defaults:
    _title: 'AI'
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  requirements:
    _permission: 'administer ai'

Remaining tasks

None.

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

None.

🐛 Bug report
Status

Active

Version

1.2

Component

...to be triaged

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.71.5 2024