Enhance session management and access control for super admins

This commit introduces improvements to session management by implementing a new check for super admin sessions, allowing them to bypass certain access restrictions. It updates the logout function to retain super admin session data and modifies event access functions to grant permissions based on super admin status. Additionally, the session timeout duration is adjusted for better alignment with site requirements. The version code is updated to reflect these changes.
This commit is contained in:
2026-07-01 13:48:43 -04:00
parent b1699cd10c
commit abb63c293f
7 changed files with 97 additions and 29 deletions

View File

@ -344,7 +344,8 @@ if (isset($_GET['promoteur_eve_id'])) {
header('Location: ' . $vDomaine . '/' . $strPage);
exit;
}
} elseif (!fxIsPromoteur($_SESSION['com_id'], $intEveIdbase)
} elseif (empty($_SESSION['usa_id'])
&& !fxIsPromoteur($_SESSION['com_id'], $intEveIdbase)
&& !fxEveAccesComHasV2ForEvent($_SESSION['com_id'], $intEveIdbase)) {
header('Location: ' . $vDomaine . '/' . $strPage);
exit;