#11710 redirect meta message

This commit is contained in:
Jonathan 2023-08-04 09:29:47 +02:00
parent 9dabecffce
commit 10dd156b16
1 changed files with 12 additions and 1 deletions

View File

@ -724,8 +724,19 @@ if ($copy_command) {
$is_management_allowed = is_management_allowed();
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(
__('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
)
);
}