Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-24 10:26:42 +02:00
parent 2eacf9c26e
commit 1a3a614321

View File

@ -79,7 +79,7 @@ if (!empty($update)) {
$object = new BookKeeping($db);
// Security check
if (empty($conf->accounting->enabled)) {
if (!isModEnabled('accounting')) {
accessforbidden();
}
if ($user->socid > 0) {