restrict acces to commercialupdate if user can only see his own
thirdparty
This commit is contained in:
parent
24cd2d2b85
commit
e1dbee651e
@ -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