Merge pull request #1260 from FHenry/3.4
restrict acces to commercial update if user can only see his own
This commit is contained in:
commit
8373982837
@ -4,7 +4,7 @@
|
||||
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
||||
print $langs->trans('SalesRepresentatives');
|
||||
print '<td><td align="right">';
|
||||
if ($user->rights->societe->creer)
|
||||
if ($user->rights->societe->creer && $user->rights->societe->client->voir)
|
||||
print '<a href="'.DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$object->id.'">'.img_edit().'</a>';
|
||||
else
|
||||
print ' ';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user