FIX #5252
This commit is contained in:
parent
448c394f2a
commit
fb724566f0
@ -886,7 +886,7 @@ else
|
||||
}
|
||||
|
||||
// Close
|
||||
if (($object->statut == 0 || $object->statut == 1) && $user->rights->projet->creer)
|
||||
if ($object->statut == 1 && $user->rights->projet->creer)
|
||||
{
|
||||
if ($userWrite > 0)
|
||||
{
|
||||
@ -981,9 +981,9 @@ else
|
||||
}
|
||||
|
||||
// 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.'&action=delete">'.$langs->trans("Delete").'</a></div>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user