restructurer les acces

This commit is contained in:
2026-06-23 14:19:57 -04:00
parent bc8bc86b74
commit 2cf8f5e7ec
5 changed files with 11 additions and 40 deletions

View File

@ -316,7 +316,8 @@ if (isset($_GET['promoteur_eve_id'])) {
exit;
}
} elseif ($strCode === 'compte_inc_tableau_gestion_epreuves') {
if (!fxEveAccesCanManageBibV4($_SESSION['com_id'] ?? 0, $intEveIdbase)) {
if (empty($_SESSION['usa_id'])
&& !fxEveAccesHasAnyPermission($_SESSION['com_id'] ?? 0, $intEveIdbase, array('dossards.manage', 'epreuves.edit_qte'))) {
header('Location: ' . $vDomaine . '/' . $strPage);
exit;
}