diff --git a/php/inc_fx_promoteur_hub.php b/php/inc_fx_promoteur_hub.php index d145b00..902cbdd 100644 --- a/php/inc_fx_promoteur_hub.php +++ b/php/inc_fx_promoteur_hub.php @@ -581,7 +581,12 @@ function fxPromoteurHubGetEventLinks($arrItem, $strLangue) $arrGestion[] = array('label' => fxPromoteurHubTexte('tableau_promoteur_menueinscription', 0), 'url' => $strCompte . 'inc_tableau_inscriptions?promoteur_eve_id=' . $strE . '&lng=' . $strLangue, 'icon' => 'fa-users'); - if (function_exists('fxInscrGestionCanAccess') && fxInscrGestionCanAccess($intComId, $intEveId)) { + // Menu hub charge en AJAX (ajax_promoteur_hub.php) sans passer par compte.php : + // inc_fx_inscriptions_gestion.php doit etre charge ici pour evaluer les droits V2. + if (!function_exists('fxInscrGestionCanAccess')) { + require_once __DIR__ . '/inc_fx_inscriptions_gestion.php'; + } + if (fxInscrGestionCanAccess($intComId, $intEveId)) { $arrGestion[] = array('label' => fxInscrGestionPromoteurMenuLabel(), 'url' => $strCompte . 'inc_tableau_inscriptions_gestion?promoteur_eve_id=' . $strE . '&lng=' . $strLangue, 'icon' => 'fa-users'); }