Scope checking security-policies experimental feature flag to group
What does this MR do and why?
This MR fixes a problem where settings for security policies experimental toggles cannot be saved when feature is not enabled globally. This should be scoped to the group-level instead. This MR fixes that.
How to set up and validate locally
- Disable
security_policies_policy_scope
andcompliance_pipeline_in_policies
features globally - Create new group
- Enable
security_policies_policy_scope
,compliance_pipeline_in_policies
features for newly created group - Go to Group -> Settings -> General -> Permissions and group features and try to toggle and save experimental features:
- You should be able to do it.
Edited by Alan (Maciej) Paruszewski