From 97a1020ec270cafd7e13b92001e53979d572d4af Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Thu, 24 Dec 2020 09:06:38 +0100 Subject: [PATCH] Removed item permissions report from report templates --- pandora_console/include/functions_reports.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_reports.php b/pandora_console/include/functions_reports.php index f221d43183..db938ea0da 100755 --- a/pandora_console/include/functions_reports.php +++ b/pandora_console/include/functions_reports.php @@ -890,10 +890,12 @@ function reports_get_report_types($template=false, $not_editor=false) ]; } - $types['permissions_report'] = [ - 'optgroup' => __('Permissions report'), - 'name' => __('Permissions report'), - ]; + if ($template === false) { + $types['permissions_report'] = [ + 'optgroup' => __('Permissions report'), + 'name' => __('Permissions report'), + ]; + } return $types; }