Reverse changes for non-administrators users
This commit is contained in:
parent
8d639b031e
commit
0d7acdc574
|
@ -119,9 +119,9 @@ $own_info = get_user_info ($config['id_user']);
|
||||||
|
|
||||||
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', $display_all_group, 'graph_id_group', $id_group, '', '', '', true);
|
echo html_print_select_groups($config['id_user'], 'RW', true, 'graph_id_group', $id_group, '', '', '', true);
|
||||||
elseif (check_acl ($config['id_user'], 0, "RM"))
|
elseif (check_acl ($config['id_user'], 0, "RM"))
|
||||||
echo html_print_select_groups($config['id_user'], 'RM', $display_all_group, 'graph_id_group', $id_group, '', '', '', true);
|
echo html_print_select_groups($config['id_user'], 'RM', true, 'graph_id_group', $id_group, '', '', '', true);
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td class='datos2'><b>".__('Description')."</b></td>";
|
echo "<td class='datos2'><b>".__('Description')."</b></td>";
|
||||||
|
|
|
@ -67,12 +67,11 @@ $table->data['name'][1] = html_print_input_text('name', $reportName,
|
||||||
__('Name'), 80, 100, true, false, true);
|
__('Name'), 80, 100, true, false, true);
|
||||||
|
|
||||||
$table->data['group'][0] = __('Group');
|
$table->data['group'][0] = __('Group');
|
||||||
$display_all_group = (users_is_admin() || users_can_manage_group_all("AR"));
|
$write_groups = users_get_groups_for_select(false, "AR", true, true, false, 'id_grupo');
|
||||||
$write_groups = users_get_groups_for_select(false, "AR", $display_all_group, true, false, 'id_grupo');
|
|
||||||
|
|
||||||
|
|
||||||
html_print_select_groups($config['id_user'], "AR",
|
html_print_select_groups($config['id_user'], "AR",
|
||||||
$display_all_group, 'id_group', $idGroup, '', '', '', true);
|
true, 'id_group', $idGroup, '', '', '', true);
|
||||||
|
|
||||||
|
|
||||||
// If the report group is not among the RW groups (special permission) we add it
|
// If the report group is not among the RW groups (special permission) we add it
|
||||||
|
|
Loading…
Reference in New Issue