From fcb1cd24b5c0bb8e1981dbf70132cedf66b0b512 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 18 Oct 2022 11:02:06 +0200 Subject: [PATCH] #9665 Fixed button --- pandora_console/godmode/alerts/alert_commands.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/alerts/alert_commands.php b/pandora_console/godmode/alerts/alert_commands.php index bbdd17841e..7b07f583f9 100644 --- a/pandora_console/godmode/alerts/alert_commands.php +++ b/pandora_console/godmode/alerts/alert_commands.php @@ -828,7 +828,8 @@ if (isset($data) === true && count($table->data) > 0) { ); } -if ($is_management_allowed === true && check_acl_restricted_all($config['id_user'], $command['id_group'], 'PM')) { +// Commands can only be created by the super administrator. +if (users_is_admin() === true) { echo '
'; echo '
'; html_print_submit_button(__('Create'), 'create', false, 'class="sub next"');