mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added change in pandora header, now users without PM permissions dont see warning incon. Ticket #3548
This commit is contained in:
parent
c0ccd438a9
commit
f52d02992e
@ -231,7 +231,7 @@ config_check();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$pandora_management = check_acl($config['id_user'], 0, "PM");
|
||||||
|
|
||||||
if ($config["alert_cnt"] > 0) {
|
if ($config["alert_cnt"] > 0) {
|
||||||
echo '<div id="alert_messages" style="display: none"></div>';
|
echo '<div id="alert_messages" style="display: none"></div>';
|
||||||
@ -245,16 +245,26 @@ config_check();
|
|||||||
$maintenance_link_open_img =
|
$maintenance_link_open_img =
|
||||||
'<a href="' . $maintenance_link . '" title="' . $maintenance_title . '" class="' . $maintenance_class . '">';
|
'<a href="' . $maintenance_link . '" title="' . $maintenance_title . '" class="' . $maintenance_class . '">';
|
||||||
$maintenance_link_close = '</a>';
|
$maintenance_link_close = '</a>';
|
||||||
$maintenance_img = $maintenance_link_open_img .
|
if (!$pandora_management) {
|
||||||
html_print_image("images/header_yellow.png",
|
$maintenance_img = '';
|
||||||
true, array(
|
}
|
||||||
"title" => __('You have %d warning(s)',
|
else {
|
||||||
$config["alert_cnt"]),
|
$maintenance_img = $maintenance_link_open_img .
|
||||||
"id" => "yougotalert",
|
html_print_image("images/header_yellow.png",
|
||||||
"class" => "bot")) . $maintenance_link_close;
|
true, array(
|
||||||
|
"title" => __('You have %d warning(s)',
|
||||||
|
$config["alert_cnt"]),
|
||||||
|
"id" => "yougotalert",
|
||||||
|
"class" => "bot")) . $maintenance_link_close;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$maintenance_img = html_print_image ("images/header_ready.png", true, array ("title" => __('There are not warnings'), "id" => "yougotalert", "class" => "bot"));
|
if (!$pandora_management) {
|
||||||
|
$maintenance_img = '';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$maintenance_img = html_print_image ("images/header_ready.png", true, array ("title" => __('There are not warnings'), "id" => "yougotalert", "class" => "bot"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[0][3] = $maintenance_img;
|
$table->data[0][3] = $maintenance_img;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user