From 282c0d9f132901c3a74a1c6ff246eaa140359bbc Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Wed, 24 Aug 2022 10:34:12 +0200 Subject: [PATCH] Use isModEnabled --- htdocs/accountancy/bookkeeping/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 8b8620f123d..f27a23256b6 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -214,7 +214,7 @@ if (empty($listofformat[$formatexportset])) { $error = 0; -if (empty($conf->accounting->enabled)) { +if (!isModEnabled('accounting')) { accessforbidden(); } if ($user->socid > 0) {