From 35293e75c8a3852d2d95f735b540e2bc79753dff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Aug 2024 15:01:24 +0200 Subject: [PATCH] Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 --- htdocs/core/multicompany_page.php | 9 ++++++--- htdocs/theme/eldy/global.inc.php | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/htdocs/core/multicompany_page.php b/htdocs/core/multicompany_page.php index a047ef74968..203313deabe 100644 --- a/htdocs/core/multicompany_page.php +++ b/htdocs/core/multicompany_page.php @@ -58,6 +58,9 @@ $langs->load("main"); $right = ($langs->trans("DIRECTION") == 'rtl' ? 'left' : 'right'); $left = ($langs->trans("DIRECTION") == 'rtl' ? 'right' : 'left'); +if (!isModEnabled('multicompany')) { + httponly_accessforbidden('No multicompany module enabled'); +} /* @@ -113,15 +116,15 @@ if (!isModEnabled('multicompany')) { $listofentities = array(); } - $multicompanyList .= '