Ajout permissions sur création et suppression des contacts
This commit is contained in:
parent
15be92964a
commit
576c701546
@ -427,7 +427,10 @@ if ($socid > 0)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<a class=\"tabAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&action=create\">".$langs->trans("AddContact")."</a>";
|
if ($user->rights->societe->contact->creer)
|
||||||
|
{
|
||||||
|
print "<a class=\"tabAction\" href=\"".DOL_URL_ROOT.'/contact/fiche.php?socid='.$socid."&action=create\">".$langs->trans("AddContact")."</a>";
|
||||||
|
}
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
@ -497,7 +500,12 @@ if ($socid > 0)
|
|||||||
print '<td><a href="../comm/action/fiche.php?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->email.'</a> </td>';
|
print '<td><a href="../comm/action/fiche.php?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$societe->id.'">'.$obj->email.'</a> </td>';
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td align="center">';
|
||||||
print "<a href=\"../contact/fiche.php?action=edit&id=$obj->idp\">";
|
|
||||||
|
if ($user->rights->societe->contact->creer)
|
||||||
|
{
|
||||||
|
print "<a href=\"../contact/fiche.php?action=edit&id=$obj->idp\">";
|
||||||
|
}
|
||||||
|
|
||||||
print img_edit();
|
print img_edit();
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user