Implement fine-grained permissions for compliance-center
What does this MR do and why?
This MR introduces fine-grained permissions for compliance center, allowing backend to configure which tabs are available
This is required by Add compliance center to project level (#441350) and Add Compliance Center for Premium (#461496 - closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Example of compliance center with one of the tabs disabled
How to set up and validate locally
- Since the backend support will be added later, just edit
ee/app/views/shared/compliance/_compliance_dashboard.html.haml
feature_adherence_report_enabled: true.to_s,
feature_violations_report_enabled: true.to_s,
feature_frameworks_report_enabled: true.to_s,
feature_projects_report_enabled: true.to_s,
Note: case that all are false is not handled, because this is will never be the case
- Open
Secure > Compliance center
in any group and observe changes