Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-24 10:26:33 +02:00
parent 71acad3a81
commit 2eacf9c26e

View File

@ -143,7 +143,7 @@ if (!empty($search_ledger_code)) {
} }
} }
if (empty($conf->accounting->enabled)) { if (!isModEnabled('accounting')) {
accessforbidden(); accessforbidden();
} }
if ($user->socid > 0) { if ($user->socid > 0) {