Fixed visual metaconsole tiquet: 2013
This commit is contained in:
parent
683f8b500c
commit
f43698bfe7
|
@ -436,9 +436,10 @@ if (defined("METACONSOLE")){
|
|||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
if (check_acl ($config['id_user'], 0, "RM")) {
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
}
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
}
|
||||
|
|
|
@ -490,8 +490,10 @@ switch ($action) {
|
|||
$table->head[$next] = __('Group');
|
||||
$table->align[$next] = 'center';
|
||||
$next++;
|
||||
$table->head[$next] = '<span title="Operations">' .
|
||||
__('Op.') . '</span>';
|
||||
if(!defined('METACONSOLE'))
|
||||
$table->head[$next] = '<span title="Operations">' .
|
||||
__('Op.') . '</span>';
|
||||
|
||||
$table->size = array ();
|
||||
$table->size[$next] = '80px';
|
||||
$table->style[$next] = 'text-align:center;';
|
||||
|
@ -570,10 +572,7 @@ switch ($action) {
|
|||
if ($config['id_user'] == $report['id_user'] || is_user_admin ($config["id_user"])) {
|
||||
$delete = true; //owner can delete
|
||||
} else {
|
||||
$delete = check_acl($config['id_user'],
|
||||
$report['id_group'], "RM")
|
||||
&&
|
||||
users_can_manage_group_all($report["id_group"], "RM");
|
||||
$delete = false;
|
||||
}
|
||||
break;
|
||||
case 'group_edit':
|
||||
|
|
Loading…
Reference in New Issue