Use isModEnabled

This commit is contained in:
Alexandre SPANGARO 2022-08-29 10:47:38 +02:00
parent 186bd8b731
commit bf735600bf

View File

@ -171,7 +171,7 @@ if ($object->fk_user_create > 0) {
}
// Thirdparty
if (!empty($conf->societe->enabled)) {
if (isModEnabled('societe')) {
$morehtmlref .= '<br>'.$langs->trans('ThirdParty');
/*if ($action != 'editcustomer' && $object->fk_statut < 8 && !$user->socid && $user->rights->ticket->write) {
$morehtmlref.='<a class="editfielda" href="' . $url_page_current . '?action=editcustomer&token='.newToken().'&track_id=' . $object->track_id . '">' . img_edit($langs->transnoentitiesnoconv('Edit'), 1) . '</a>';
@ -185,7 +185,7 @@ if (!empty($conf->societe->enabled)) {
}
// Project
if (!empty($conf->project->enabled)) {
if (isModEnabled('project')) {
$langs->load("projects");
$morehtmlref .= '<br>'.$langs->trans('Project');
if ($user->rights->ticket->write) {