Wrong permission for ai.settings.menu route
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3542944. --> Reported by: [claudiu.cristea](https://www.drupal.org/user/56348) Related to !847 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>For some reasons to access the main AI settings form (route /admin/config/ai) you'll need the <code>administer site configuration</code> while <code>administer ai</code>, as its descriptions states:</p> <blockquote><p> Administer AI settings </p></blockquote> <p>Also <code>administer ai</code> is used for the others.</p> <p>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.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Change route def to:</p> <pre>ai.settings.menu:<br>&nbsp; path: '/admin/config/ai'<br>&nbsp; defaults:<br>&nbsp;&nbsp;&nbsp; _title: 'AI'<br>&nbsp;&nbsp;&nbsp; _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'<br>&nbsp; requirements:<br>&nbsp;&nbsp;&nbsp; _permission: 'administer ai'</pre><h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>None.</p> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <p>None.</p>
issue