diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index ba2e92fe573..13fedebfa88 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -535,13 +535,12 @@ if (empty($reshook)) } // Links with users - if (!empty($user->rights->societe->client->voir)) { - $salesreps = GETPOST('commercial', 'array'); - $result = $object->setSalesRep($salesreps); - if ($result < 0) { - $error++; - setEventMessages($object->error, $object->errors, 'errors'); - } + $salesreps = GETPOST('commercial', 'array'); + $result = $object->setSalesRep($salesreps); + if ($result < 0) + { + $error++; + setEventMessages($object->error, $object->errors, 'errors'); } // Customer categories association @@ -1378,16 +1377,13 @@ else print ''; } - if ($user->rights->societe->client->voir) - { - // Assign a Name - print '