Skip to content
Snippets Groups Projects
Commit 05a2a6af authored by Maxime Kohlhaas's avatar Maxime Kohlhaas
Browse files

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

parent 154e1a79
Branches
No related tags found
No related merge requests found
...@@ -365,7 +365,7 @@ if ($id) ...@@ -365,7 +365,7 @@ if ($id)
print "<div class=\"tabsAction\">\n"; print "<div class=\"tabsAction\">\n";
if ($salpayment->rappro == 0) 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>'; print '<a class="butActionDelete" href="fiche.php?id='.$salpayment->id.'&action=delete">'.$langs->trans("Delete").'</a>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment