From 803efa7acc4404f1325fabd90b9b3afa6becba98 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Sep 2020 15:39:47 +0200 Subject: [PATCH] Add hidden constant until feature is reliable --- htdocs/admin/system/modules.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/system/modules.php b/htdocs/admin/system/modules.php index 1b482e13238..34b89e911f6 100644 --- a/htdocs/admin/system/modules.php +++ b/htdocs/admin/system/modules.php @@ -298,9 +298,11 @@ foreach ($moduleList as $module) { $idperms .= ($idperms ? ", " : "").$permission; $translationKey = "Permission".$permission; - if (empty($langs->tab_translate[$translationKey])) { - $tooltip = 'Missing translation (key '.$translation.' not found in admin.lang)'; - $idperms .= ' Warning'; + if (! empty($conf->global->MAIN_SHOW_PERMISSION)) { + if (empty($langs->tab_translate[$translationKey])) { + $tooltip = 'Missing translation (key '.$translationkey.' not found in admin.lang)'; + $idperms .= ' Warning'; + } } }