Hide users info to operator read profile in agent view and create service button - #916

This commit is contained in:
enriquecd 2017-06-01 11:02:38 +02:00
parent 7cf6d20bc7
commit 3ffd73ebb6
2 changed files with 29 additions and 19 deletions

View File

@ -18,7 +18,11 @@ global $config;
check_login ();
ui_require_css_file ('firts_task');
?>
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no services defined yet.') ) ); ?>
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no services defined yet.') ) );
if (check_acl ($config['id_user'], 0, "UM")) {
?>
<div class="new_task">
<div class="image_task">
@ -37,3 +41,6 @@ ui_require_css_file ('firts_task');
</form>
</div>
</div>
<?php } ?>

View File

@ -7197,24 +7197,26 @@ function reporting_get_stats_users($data) {
}
// Users table
$table_us = html_get_predefined_table();
$tdata = array();
$tdata[0] = html_print_image('images/user_green.png', true, array('title' => __('Defined users')));
$tdata[1] = count (get_users ());
$tdata[1] = '<a class="big_data" href="' . $urls["defined_users"] . '">' . $tdata[1] . '</a>';
$tdata[2] = $tdata[3] = '&nbsp;';
$table_us->rowclass[] = '';
$table_us->data[] = $tdata;
$output = '<fieldset class="databox tactical_set">
<legend>' .
__('Users') .
'</legend>' .
html_print_table($table_us, true) . '</fieldset>';
return $output;
if (check_acl ($config['id_user'], 0, "UM")) {
$table_us = html_get_predefined_table();
$tdata = array();
$tdata[0] = html_print_image('images/user_green.png', true, array('title' => __('Defined users')));
$tdata[1] = count (get_users ());
$tdata[1] = '<a class="big_data" href="' . $urls["defined_users"] . '">' . $tdata[1] . '</a>';
$tdata[2] = $tdata[3] = '&nbsp;';
$table_us->rowclass[] = '';
$table_us->data[] = $tdata;
$output = '<fieldset class="databox tactical_set">
<legend>' .
__('Users') .
'</legend>' .
html_print_table($table_us, true) . '</fieldset>';
return $output;
}
}
/**
@ -10208,3 +10210,4 @@ function reporting_label_macro ($item, $label) {
}
?>