Skip to content

Commit

Permalink
FIX #9432
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcet committed Sep 20, 2018
1 parent e0dfab4 commit 4597cd4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions htdocs/societe/card.php
Expand Up @@ -535,12 +535,13 @@
}

// Links with users
$salesreps = GETPOST('commercial', 'array');
$result = $object->setSalesRep($salesreps);
if ($result < 0)
{
$error++;
setEventMessages($object->error, $object->errors, 'errors');
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');
}
}

// Customer categories association
Expand Down

0 comments on commit 4597cd4

Please sign in to comment.