From c1e463824b8fb96bbd88b68820ea3be4fac753f5 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 16 Apr 2018 17:37:27 +0200 Subject: [PATCH] [Graph container] Display only the containers group can see (ACL) --- pandora_console/include/functions_container.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_container.php b/pandora_console/include/functions_container.php index 5543963091..8a7d373cf1 100644 --- a/pandora_console/include/functions_container.php +++ b/pandora_console/include/functions_container.php @@ -20,7 +20,13 @@ */ require_once ('include/functions_graph.php'); function folder_get_folders(){ - $folders = io_safe_output(db_get_all_rows_in_table ('tcontainer','parent, name')); + $folders = io_safe_output(db_get_all_rows_filter ( + 'tcontainer', + array ( + 'id_group' => array_keys(users_get_groups()), + 'order' => 'parent, name' + ) + )); $ordered_folders = array(); foreach ($folders as $folder) {