Use isModEnabled
This commit is contained in:
parent
71acad3a81
commit
2eacf9c26e
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ if (!empty($search_ledger_code)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (empty($conf->accounting->enabled)) {
|
||||
if (!isModEnabled('accounting')) {
|
||||
accessforbidden();
|
||||
}
|
||||
if ($user->socid > 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue