From a2e98ea612efe6d2e8c72980df6c0a097c3e3d44 Mon Sep 17 00:00:00 2001 From: Pascal Comte Date: Tue, 14 Jan 2025 09:56:17 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20des=20droits=20d'acc=C3=A8s=20-=20?= =?UTF-8?q?Menu=20gestionnaire=20d'une=20biblioth=C3=A8que=20=C3=A0=20l'id?= =?UTF-8?q?entique=20d'un=20responsable=20de=20biblioth=C3=A8que?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/includes/menu.php | 107 +++++++++++++++++++++++++++++------------ 1 file changed, 76 insertions(+), 31 deletions(-) diff --git a/html/includes/menu.php b/html/includes/menu.php index 769cbeb..52ebd79 100644 --- a/html/includes/menu.php +++ b/html/includes/menu.php @@ -1255,12 +1255,29 @@ function triparprofondeurabsolue($struct1, $struct2) estgestionnaire()) { + if ($user->estgestionnaire()) + { + $structgestliste = $user->structgestliste(); + $estgestdebibliotheque = true; + foreach ((array)$structgestliste as $struct) + { + if (!$struct->estbibliotheque()) + { + $estgestdebibliotheque = false; + break; + } + } + + ?> estprofilrh()) { + if ($user->estprofilrh()) + { ?> estadministrateur()) { + if ($realuser->estadministrateur()) + { ?>