|
@@ -867,7 +867,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|
|
}
|
|
|
|
|
|
// Categories
|
|
|
- if (isModEnabled('categorie') && !empty($user->rights->categorie->lire)) {
|
|
|
+ if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
|
|
|
print '<tr><td>'.$form->editfieldkey('Categories', 'contcats', '', $object, 0).'</td><td colspan="3">';
|
|
|
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CONTACT, null, 'parent', null, null, 1);
|
|
|
print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('contcats', $cate_arbo, GETPOST('contcats', 'array'), null, null, null, null, '90%');
|
|
@@ -1157,7 +1157,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|
|
print '</td></tr>';
|
|
|
|
|
|
// Categories
|
|
|
- if (isModEnabled('categorie') && !empty($user->rights->categorie->lire)) {
|
|
|
+ if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
|
|
|
$arrayselected = array();
|
|
|
print '<tr><td>'.$form->editfieldkey('Categories', 'contcats', '', $object, 0).'</td>';
|
|
|
print '<td colspan="3">';
|
|
@@ -1430,7 +1430,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|
|
print '<table class="border tableforfield centpercent">';
|
|
|
|
|
|
// Categories
|
|
|
- if (isModEnabled('categorie') && !empty($user->rights->categorie->lire)) {
|
|
|
+ if (isModEnabled('categorie') && $user->hasRight('categorie', 'lire')) {
|
|
|
print '<tr><td class="titlefield">'.$langs->trans("Categories").'</td>';
|
|
|
print '<td>';
|
|
|
print $form->showCategories($object->id, Categorie::TYPE_CONTACT, 1);
|