Skip to content

🔧(backend) make AI feature reach configurable #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

sampaccoud
Copy link
Member

Purpose

We want to be able to define whether AI features are available to anonymous users who gained editor access on a document, or if we demand that they be authenticated or even if we demand that they gained their editor access via a specific document access.

Proposal

Add a new setting AI_ALLOW_REACH_FROM that can take the following values:

  • public: any user, even anonymous can use AI features on a document if they have editor rights on it
  • authenticated: any authenticated user can use AI features on a document if they have editor rights on it
  • restricted: only users who gained editor rights via a specific access on the document can use AI features

We want to be able to define whether AI features are available to
anonymous users who gained editor access on a document, or if we
demand that they be authenticated or even if we demand that they
gained their editor access via a specific document access.

Being authenticated is now the default value. This will change the
default behavior on your existing instance (see UPGRADE.md)
@sampaccoud sampaccoud requested review from AntoLC and lunika February 11, 2025 07:56
@sampaccoud sampaccoud self-assigned this Feb 11, 2025
@sampaccoud sampaccoud added python Pull requests that update Python code feature add a new feature backend labels Feb 11, 2025
Anybody with edit right could use the AI.
We changed this behavior, now we have to be
authentified with edit right.
We update the UI to display the AI buttons
only if the user has the correct AI ability.
@AntoLC AntoLC force-pushed the deactivate-ia-for-anonymous-users branch from 4cf3432 to a7a9af1 Compare February 11, 2025 09:26
@AntoLC AntoLC merged commit d89e3dc into main Feb 11, 2025
18 of 19 checks passed
@AntoLC AntoLC deleted the deactivate-ia-for-anonymous-users branch February 11, 2025 09:54
@AntoLC AntoLC mentioned this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend feature add a new feature python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants