add missing token (#30232)

* add missing token

* Update card.php
This commit is contained in:
Frédéric FRANCE 2024-07-02 01:51:31 +02:00 committed by GitHub
parent 3da9e53b03
commit b91858863b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1654,7 +1654,7 @@ if ($action == 'create') {
// Modify
if ($object->statut == Fichinter::STATUS_VALIDATED && ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('ficheinter', 'creer')) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('ficheinter', 'ficheinter_advance', 'unvalidate')))) {
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?id='.$object->id.'&action=modify">';
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?id='.$object->id.'&action=modify&token='.newToken().'">';
if (!getDolGlobalString('FICHINTER_DISABLE_DETAILS')) {
print $langs->trans("Modify");
} else {