Restore permission for accessing AI Content Suggestion features

Created on 9 January 2025, 27 days ago

Problem/Motivation

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.

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.

Steps to reproduce

1. Enable the AI Content Suggestions submodule.
2. Observe there is no link to "configure permissions" after enabling, as there often is.
3. Go to Configuration > AI Content Suggestion settings and enable some of the tools.
4. Edit a node and observe that any user can access the tools. There is no way to restrict access.

Proposed resolution

Add back a permission for "access ai content suggestion tools" and don't display the tools unless user has the permission.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Other Submodules

Created by

πŸ‡ΊπŸ‡ΈUnited States heatherwoz Seattle

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024