Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-24 10:34:12 +02:00
parent 3c67bfc539
commit 282c0d9f13

View File

@ -214,7 +214,7 @@ if (empty($listofformat[$formatexportset])) {
$error = 0;
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {