add inithook

This commit is contained in:
Frédéric FRANCE 2024-03-22 14:47:25 +01:00 committed by GitHub
parent 7997db3eb9
commit 3257f8405c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,8 @@ $enddate = dol_mktime(23, 59, 59, GETPOSTINT('enddatemonth'), GETPOSTINT('enddat
$search_ref = GETPOST('search_ref', 'alpha');
$hookmanager->initHooks(array('checkmarginlist'));
// Security check
$result = restrictedArea($user, 'margins');