[Ban AI] Block all AI features for a resource when `duo_features_enabled` is `false`
Context
- Blocked by setting being added at [Ban AI] Add backend for cascading setting `duo... (#441481 - closed)
- This is an EE-only feature available to Ultimate-plan customers
- This should block all AI features, not just those that are GA.
- Look at the value of
duo_features_enabled
on the project or group itself when deciding whether to ban AI features for that project or group (don't look at the value on the parent object). Cascading setting ensures that the correct value is set at every level.
- This may require is to refactor some of the AI feature access control logic to be more centralized/consolidated.
Definition of done
- If
duo_features_enabled
is false
on a project, I cannot use Duo Chat features that require access to resources (code, issues, etc) that belong to that project.
-
- If
duo_features_enabled
is false
on a project, I cannot use any GitLab Duo features that require access to that group.
- If
duo_features_enabled
is false
on a group, I cannot use Duo Chat features that require access to resources (epics) that belong to that group.