Merge pull request #23935 from jyhere/jyhere-patch-3

[FIX]: missing initHooks in adherents/agenda.php
This commit is contained in:
Laurent Destailleur 2023-02-16 21:00:56 +01:00 committed by GitHub
commit 9cb2c880b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,9 @@ $search_agenda_label = GETPOST('search_agenda_label');
// Get object canvas (By default, this is not defined, so standard usage of dolibarr)
$objcanvas = null;
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('memberagenda'));
// Security check
$result = restrictedArea($user, 'adherent', $id);