From e1dbee651ef75b4d1b9254828f407bd55f06abfc Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Sat, 19 Oct 2013 22:08:42 +0200 Subject: [PATCH] restrict acces to commercialupdate if user can only see his own thirdparty --- htdocs/societe/tpl/linesalesrepresentative.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/tpl/linesalesrepresentative.tpl.php b/htdocs/societe/tpl/linesalesrepresentative.tpl.php index 9b2867cacff..70c9ec283c0 100644 --- a/htdocs/societe/tpl/linesalesrepresentative.tpl.php +++ b/htdocs/societe/tpl/linesalesrepresentative.tpl.php @@ -4,7 +4,7 @@ print '
'; print $langs->trans('SalesRepresentatives'); print ''; - if ($user->rights->societe->creer) + if ($user->rights->societe->creer && $user->rights->societe->client->voir) print ''.img_edit().''; else print ' ';