centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

fix(api): handle React page Menu Access ACL calculation #11925

Closed jeremyjaouen closed 2 years ago

jeremyjaouen commented 2 years ago

Description

This PR intends to handle the react pages into the ACL calculation for the menu in API v2. This PR also improve the Request and algorythm to get the pages where the user has access_right. Before, we got all the pages of topology (around 120 lines) and iterate on each one to find those who has access_right. Now, we only got the pages where the user has access_right.

Fixes # MON-15299

Type of change

Target serie

Checklist

Community contributors & Centreon team

sonarqube-decoration[bot] commented 2 years ago

SonarQube Quality Gate

Quality Gate failed

Failed condition E Security Rating on New Code (is worse than A)
0.0% 0.0% Security Hotspots Reviewed on New Code (is less than 100%)
Failed condition 2 New Vulnerabilities (is greater than 0)

See analysis details on SonarQube

Fix issues before they fail your Quality Gate with SonarLint SonarLint in your IDE.