This commit is contained in:
Laurent Destailleur 2016-06-03 22:15:07 +02:00
parent 448c394f2a
commit fb724566f0

View File

@ -886,7 +886,7 @@ else
} }
// Close // Close
if (($object->statut == 0 || $object->statut == 1) && $user->rights->projet->creer) if ($object->statut == 1 && $user->rights->projet->creer)
{ {
if ($userWrite > 0) if ($userWrite > 0)
{ {
@ -981,9 +981,9 @@ else
} }
// Delete // Delete
if ($user->rights->projet->supprimer) if ($user->rights->projet->supprimer || ($object->statut == 0 && $user->rights->projet->creer))
{ {
if ($userDelete > 0) if ($userDelete > 0 || ($object->statut == 0 && $user->rights->projet->creer))
{ {
print '<div class="inline-block divButAction"><a class="butActionDelete" href="card.php?id='.$object->id.'&amp;action=delete">'.$langs->trans("Delete").'</a></div>'; print '<div class="inline-block divButAction"><a class="butActionDelete" href="card.php?id='.$object->id.'&amp;action=delete">'.$langs->trans("Delete").'</a></div>';
} }