Simplify token validation in download handler

- Changed from checkToken() to simple token existence check
- checkToken() does not exist in this Dolibarr version
- Now uses same pattern as other files in the module: if (!token)
- Matches the token validation pattern used in declarationtva_view.php
- Should resolve the PHP Fatal error
This commit is contained in:
Frank Cools 2025-10-06 18:07:38 +02:00
parent baecaa3fd6
commit 64f5278e2b

View File

@ -30,7 +30,7 @@ $declaration_id = GETPOST('id', 'int');
$token = GETPOST('token', 'alpha');
// Validate token
if (!checkToken($token)) {
if (!$token) {
accessforbidden();
}