Files
ms1inscription-v5/sql/MSIN-eve-acces-v2-promoteur-legacy-toggle.sql
stephan 5936cdb61c Add legacy promoteur functionality and migration enhancements
This commit introduces several enhancements related to the legacy promoteur system. It adds a new function to check if the legacy promoteur site is enabled and updates various functions to utilize this check, ensuring that legacy features are only accessible when appropriate. Additionally, it refines the migration process for legacy accounts, including improved handling of migration statistics and event access. The admin interface is updated to reflect these changes, enhancing the overall management of legacy promoteur accounts. The version code is updated to reflect these changes.
2026-07-01 14:14:25 -04:00

15 lines
501 B
SQL

/*
Interrupteur site : promoteur legacy (com_eve_promoteur) actif ou non.
1 = legacy actif (defaut production actuelle)
0 = legacy coupe sur le site — seuls les acces v2 comptent
Bouton super admin : sidebar Gestion des acces (inc_droite.php)
Le premier clic cree la ligne si absente (enregistrer.php change-var).
*/
INSERT INTO variables (var_nom, var_valeur)
SELECT 'promoteur_legacy_actif', 1
WHERE NOT EXISTS (
SELECT 1 FROM variables WHERE var_nom = 'promoteur_legacy_actif'
);