Fix add set_paid as sensitive action
This commit is contained in:
parent
0749d01c5a
commit
b46f4028c4
@ -876,7 +876,7 @@ if (!empty($id) && $action != 'edit') {
|
||||
|
||||
// Classify 'paid'
|
||||
if ($object->statut == $object::STATUS_VALIDATED && round($remaintopay) == 0 && $object->paid == 0 && $user->rights->don->creer) {
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER["PHP_SELF"].'?rowid='.$object->id.'&action=set_paid">'.$langs->trans("ClassifyPaid")."</a></div>";
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER["PHP_SELF"].'?rowid='.$object->id.'&action=set_paid&token='.newToken().'">'.$langs->trans("ClassifyPaid")."</a></div>";
|
||||
}
|
||||
|
||||
// Delete
|
||||
|
||||
@ -466,7 +466,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && !empty($conf->gl
|
||||
'activate', 'add', 'addrights', 'addtimespent',
|
||||
'doprev', 'donext', 'dvprev', 'dvnext',
|
||||
'install',
|
||||
'setpricelevel',
|
||||
'setpricelevel', 'set_paid',
|
||||
'update'
|
||||
);
|
||||
$sensitiveget = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user