Problem/Motivation

Currently, any user that can edit the node can generate AI suggestions for the reference fields. This is not ideal since AI suggestions incur a cost.

Example Use Case:
On a moderated site, there could be user roles with lower access that can only create and edit content for review. You may not want the lower level user roles to constantly generate suggestions since AI usage incurs a cost. In this scenario, you may want only the user that can publish the content to be able to generate the suggestions.

Proposed resolution

  • Add a user permission for "Access AI Auto-reference suggestion tools". The AI Content Suggestions have a similar permission for "Access AI Content suggestion tools".
  • Update hook to ensure status quo of permissions is set (so probably ability to edit at least one node bundle that has AI Auto-reference enabled).
  • Use the new permission to restrict access to the AI suggestions.

Remaining tasks

  • Create a PR
  • Update any documentation

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

recrit created an issue. See original summary.

scott_euser’s picture

Sounds like a good idea!

scott_euser’s picture

Issue summary: View changes

scott_euser’s picture

Category: Task » Feature request

  • scott_euser committed f9dcb516 on 1.0.x
    feat: #3545494 Add a user permission to restrict access to AI suggestion...
scott_euser’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.