restrict acces to commercialupdate if user can only see his own

thirdparty
This commit is contained in:
Florian Henry 2013-10-19 22:08:42 +02:00
parent 24cd2d2b85
commit e1dbee651e

View File

@ -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 '&nbsp;';