|
@@ -104,7 +104,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (isModEnabled('societe') && !empty($user->rights->societe->lire)) {
|
|
|
+ if (isModEnabled('societe') && $user->hasRight('societe', 'lire')) {
|
|
|
print '<div class="divsearchfield">';
|
|
|
print img_picto($langs->trans("ThirdParty"), 'company', 'class="pictofixedwidth inline-block"');
|
|
|
print $form->select_company($socid, 'search_socid', '', ' ', 0, 0, null, 0, 'minwidth100 maxwidth500');
|