mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11710 redirect meta message
This commit is contained in:
parent
9dabecffce
commit
10dd156b16
@ -724,8 +724,19 @@ if ($copy_command) {
|
|||||||
|
|
||||||
$is_management_allowed = is_management_allowed();
|
$is_management_allowed = is_management_allowed();
|
||||||
if ($is_management_allowed === false) {
|
if ($is_management_allowed === false) {
|
||||||
|
if (is_metaconsole() === false) {
|
||||||
|
$url = '<a target="_blank" href="'.ui_get_meta_url(
|
||||||
|
'index.php?sec=advanced&sec2=godmode/alerts/alert_commands&tab=command&pure=0'
|
||||||
|
).'">'.__('metaconsole').'</a>';
|
||||||
|
} else {
|
||||||
|
$url = __('any node');
|
||||||
|
}
|
||||||
|
|
||||||
ui_print_warning_message(
|
ui_print_warning_message(
|
||||||
__('This node is configured with centralized mode. All alert commands information is read only. Go to metaconsole to manage it.')
|
__(
|
||||||
|
'This node is configured with centralized mode. All alert commands information is read only. Go to %s to manage it.',
|
||||||
|
$url
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user