FIX #20902
This commit is contained in:
parent
96867fac4f
commit
c3036d455a
@ -1275,7 +1275,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
|
||||
// Close
|
||||
if ($object->statut == Project::STATUS_VALIDATED && $user->rights->projet->creer) {
|
||||
if ($userWrite > 0) {
|
||||
print '<a class="butAction" href="card.php?id='.$object->id.'&action=close">'.$langs->trans("Close").'</a>';
|
||||
print '<a class="butAction" href="card.php?id='.$object->id.'&action=close&token='.newToken().'">'.$langs->trans("Close").'</a>';
|
||||
} else {
|
||||
print '<a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans("NotOwnerOfProject").'">'.$langs->trans('Close').'</a>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user