This commit is contained in:
2026-01-15 11:40:43 +00:00
parent 84bb772343
commit 6b06f8be7e
7 changed files with 410 additions and 1 deletions

View File

@@ -144,4 +144,24 @@ class Utilisateur extends Modele {
$liste = $this->executerRequete($sql, array($_SESSION['codeSociete']));
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getMenusAccessiblesProfil($codeProfil)
{
$sql = "call sp_c_get_menus_accessibles_profil_rh(?, ?);";
$menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil));
return $menu->fetchAll(PDO::FETCH_ASSOC);
}
public function getMenusNonAccessiblesProfil($codeProfil)
{
$sql = "call sp_c_get_menus_non_accessibles_profil_rh(?, ?);";
$menu = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codeProfil));
return $menu->fetchAll(PDO::FETCH_ASSOC);
}
}