From 0863c2ffd64c3d8338dcd7eda6153eb6750b36e5 Mon Sep 17 00:00:00 2001 From: samucarc Date: Fri, 15 Mar 2019 11:51:39 +0100 Subject: [PATCH] Hidden buttons template and wizard in the open visual console Former-commit-id: 42796373226cf112f1abda8b54a780b1546f46c3 --- pandora_console/godmode/reporting/map_builder.php | 2 +- pandora_console/godmode/reporting/visual_console_favorite.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 6a20eeb30d..4471f8cbd8 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -61,7 +61,7 @@ $buttons['visual_console_favorite'] = [ 'text' => ''.html_print_image('images/list.png', true, ['title' => __('Visual Favourite Console')]).'', ]; -if ($is_enterprise && $vconsoles_manage) { +if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) { $buttons['visual_console_template'] = [ 'active' => false, 'text' => ''.html_print_image('images/templates.png', true, ['title' => __('Visual Console Template')]).'', diff --git a/pandora_console/godmode/reporting/visual_console_favorite.php b/pandora_console/godmode/reporting/visual_console_favorite.php index df13291539..d6fb18de15 100644 --- a/pandora_console/godmode/reporting/visual_console_favorite.php +++ b/pandora_console/godmode/reporting/visual_console_favorite.php @@ -54,7 +54,7 @@ $buttons['visual_console_favorite'] = [ 'text' => ''.html_print_image('images/list.png', true, ['title' => __('Visual Favourite Console')]).'', ]; -if ($is_enterprise && $vconsoles_manage) { +if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) { $buttons['visual_console_template'] = [ 'active' => false, 'text' => ''.html_print_image('images/templates.png', true, ['title' => __('Visual Console Template')]).'',