Make sure badges are visible for non-admins

What does this MR do and why?

Recently we refactored compliance badges at the project page to be same as in the compliance center

As a regression of refactoring badges were not shown for the users who don't have access to the compliance center

This MR is made to fix the problem

Make sure badges are visible for non-admins

Fix bug on the project page

Changelog: fixed

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2025-01-21_at_19.14.47 Screenshot_2025-01-21_at_19.14.27

How to set up and validate locally

  1. With the user who doesn't have admin/owner rights
  2. Go to the project page of the project with compliance badges
  3. Observe the badges

Related to #508708 (closed)

Edited by Nataliia Radina

Merge request reports

Loading