Use isModEnabled
This commit is contained in:
parent
acc1c519cc
commit
10e41b6c09
@ -50,10 +50,10 @@ $date_endyear = GETPOST('date_endyear');
|
|||||||
if ($user->socid > 0) {
|
if ($user->socid > 0) {
|
||||||
$socid = $user->socid;
|
$socid = $user->socid;
|
||||||
}
|
}
|
||||||
if (!empty($conf->comptabilite->enabled)) {
|
if (isModEnabled('comptabilite')) {
|
||||||
$result = restrictedArea($user, 'compta', '', '', 'resultat');
|
$result = restrictedArea($user, 'compta', '', '', 'resultat');
|
||||||
}
|
}
|
||||||
if (!empty($conf->accounting->enabled)) {
|
if (isModEnabled('accounting')) {
|
||||||
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
|
$result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user