[Graph container] Display only the containers group can see (ACL)

This commit is contained in:
fermin831 2018-04-16 17:37:27 +02:00
parent cb5c3016dc
commit c1e463824b
1 changed files with 7 additions and 1 deletions

View File

@ -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) {