FIX : [bug #1900] Unable to remove a salary with enough permissions

This commit is contained in:
Maxime Kohlhaas 2015-03-10 15:53:02 +01:00
parent 154e1a7991
commit 05a2a6af00

View File

@ -365,7 +365,7 @@ if ($id)
print "<div class=\"tabsAction\">\n";
if ($salpayment->rappro == 0)
{
if (! empty($user->rights->tax->charges->supprimer))
if (! empty($user->rights->salaries->delete))
{
print '<a class="butActionDelete" href="fiche.php?id='.$salpayment->id.'&action=delete">'.$langs->trans("Delete").'</a>';
}