Restore permission for accessing AI Content Suggestion features
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3498628. -->
Reported by: [heatherwoz](https://www.drupal.org/user/694068)
Related to !400
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>There is no way to manage access to the AI Content Suggestion features. The ai_content module included a permission "access ai content tools." When the module was converted to use plugins and renamed ai_content_suggestions, no permission was included.</p>
<p>Having a permission to control who can use those features is helpful. Since using AI adds costs, a site may want to limit which roles can use them. They also might want to limit to advanced editors, paid members, people who have agreed to terms, etc. Other AI modules (CKEditor, SEO, Image Alt Text) typically include a permission to allow access to the feature.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>1. Enable the AI Content Suggestions submodule.<br>
2. Observe there is no link to "configure permissions" after enabling, as there often is.<br>
3. Go to Configuration > AI Content Suggestion settings and enable some of the tools.<br>
4. Edit a node and observe that any user can access the tools. There is no way to restrict access.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add back a permission for "access ai content suggestion tools" and don't display the tools unless user has the permission.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue