mirror of
https://github.com/JMP-MS/ASPIC.git
synced 2026-10-27 16:07:10 +00:00
V1.22.23 Passage à Claude Code et création du BackOffice
This commit is contained in:
@@ -72,7 +72,7 @@ try {
|
||||
// place sur MIRADOR (comme sur les autres bases ASPIC) est nativement
|
||||
// insensible à la casse et aux accents, pas besoin d'UPPER() ici.
|
||||
$stmt = $pdoRouter->prepare(
|
||||
'SELECT MIR_Code, MIR_MDPHash, MIR_ServeurHost, MIR_ServeurPort, MIR_BaseNom
|
||||
'SELECT MIR_Code, MIR_MDPHash, MIR_ServeurHost, MIR_ServeurPort, MIR_BaseNom, MIR_BO
|
||||
FROM MIR_Users WHERE MIR_Email = ? AND MIR_Actif = 1'
|
||||
);
|
||||
$stmt->execute([$identifiant]);
|
||||
@@ -102,6 +102,12 @@ $_SESSION['USR_Code'] = $routage['MIR_Code'];
|
||||
$_SESSION['ASPIC_DB_HOST'] = $routage['MIR_ServeurHost'];
|
||||
$_SESSION['ASPIC_DB_PORT'] = (int) $routage['MIR_ServeurPort'];
|
||||
$_SESSION['ASPIC_DB_NAME'] = $routage['MIR_BaseNom'];
|
||||
// Accès BackOffice (11 septembre 2026, chantier Compétences/Missions) : lu
|
||||
// une seule fois ici, à l'identification contre MIRADOR — jamais réinterrogé
|
||||
// ensuite. Relu par preferences.php pour piloter l'affichage du bouton "BO"
|
||||
// sur le bureau, jamais transmis au front-end directement depuis ce fichier
|
||||
// (aspic.php répond à identification.html, pas à ecran_fond.html).
|
||||
$_SESSION['USR_BackOffice'] = ($routage['MIR_BO'] === 'O');
|
||||
|
||||
// Nom affiché : toujours porté par ASP_Users de la base cible (MIRADOR ne
|
||||
// connaît que l'email/code/mot de passe/routage, pas le nom complet). Un
|
||||
|
||||
Reference in New Issue
Block a user