Fixed ACL in custom graphs

This commit is contained in:
fermin831 2018-05-31 15:29:31 +02:00
parent 3155fecbfe
commit 836cce115d
1 changed files with 2 additions and 5 deletions

View File

@ -116,11 +116,8 @@ if ($edit_graph) {
echo ">"; echo ">";
$own_info = get_user_info ($config['id_user']); $own_info = get_user_info ($config['id_user']);
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM")) $return_all_groups = $own_info['is_admin'] || users_can_manage_group_all("RR");
$return_all_groups = true;
else
$return_all_groups = false;
echo "<td><b>".__('Group')."</b></td><td>"; echo "<td><b>".__('Group')."</b></td><td>";
if (check_acl ($config['id_user'], 0, "RW")) if (check_acl ($config['id_user'], 0, "RW"))
echo html_print_select_groups($config['id_user'], 'RW', $return_all_groups, 'graph_id_group', $id_group, '', '', '', true); echo html_print_select_groups($config['id_user'], 'RW', $return_all_groups, 'graph_id_group', $id_group, '', '', '', true);