Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(acl): fix calculation of acls on services #8146

Merged
merged 2 commits into from
Nov 26, 2019
Merged

Conversation

kduret
Copy link
Contributor

@kduret kduret commented Nov 25, 2019

Description

ACLs on service were not calculated (only on 19.04.5), so non-admin users could not see any services.

Refs: MON-4530

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software
  • Updating documentation (missing information, typo...)

Target serie

  • 2.8.x
  • 18.10.x
  • 19.04.x
  • 19.10.x
  • 20.04.x (master)

@@ -534,14 +531,14 @@ function getMyHostServicesByName($host_id = null)
*/
function getMetaServices($resId, $db, $metaObj)
{
$sql = "SELECT meta_id FROM acl_resources_meta_relations WHERE acl_res_id = {$db->escape($resId)}";
$sql = "SELECT meta_id FROM acl_resources_meta_relations WHERE acl_res_id = " . (int) $resId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not prepare the query here ?

@kduret kduret merged commit 498dc6a into 19.04.x Nov 26, 2019
@kduret kduret deleted the fix-acl-services branch November 26, 2019 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants