Skip to content
Snippets Groups Projects
Commit 7a8ac224 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX A draft can be deleted by a user with create permission.

parent b6463c52
No related branches found
No related tags found
No related merge requests found
......@@ -1791,7 +1791,7 @@ if ($action == 'create')
}
// Delete
if ($user->rights->supplier_proposal->supprimer) {
if (($object->statut == 0 && $user->rights->supplier_proposal->creer) || $user->rights->supplier_proposal->supprimer) {
print '<div class="inline-block divButAction"><a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&amp;action=delete"';
print '>' . $langs->trans('Delete') . '</a></div>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment