Ajout scurit sur la dfinition d'une prise d'ordre
This commit is contained in:
parent
0af52aefb9
commit
195c286a4b
@ -912,11 +912,11 @@ else
|
||||
}
|
||||
|
||||
/*
|
||||
* Contact
|
||||
* Prise d'ordre
|
||||
*
|
||||
*
|
||||
*/
|
||||
if ($_GET["action"] == 'po')
|
||||
if ($_GET["action"] == 'po' && $po == 0)
|
||||
{
|
||||
print_fiche_titre('Ajouter une prise d\'ordre');
|
||||
|
||||
@ -969,7 +969,7 @@ if ($_GET["action"] == '')
|
||||
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?action=contact&id=$contrat->id\">".$langs->trans("Contact")."</a>";
|
||||
|
||||
if ($user->rights->telephonie->ligne->creer)
|
||||
if ($user->rights->telephonie->ligne->creer && $po == 0)
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?action=po&id=$contrat->id\">Ajouter une prise d'ordre</a>";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user