From 55e14788eb05ae720ce6e64932cbb816826d7549 Mon Sep 17 00:00:00 2001 From: cy_altern Date: Wed, 9 Jul 2025 19:03:47 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20IMPORTANT=20:=20pour=20acc=C3=A9der=20au?= =?UTF-8?q?=20gamutable=20de=20gestion=20des=20messages=20il=20faut=20un?= =?UTF-8?q?=20droit=20messages=5Fgerer=20(et=20non=20pas=20messages=5Fvoir?= =?UTF-8?q?).=20POINT=20A=20VERIFIER=20:=20l'autorisation=20ne=20semble=20?= =?UTF-8?q?pas=20passer=20par=20gamucontact=5Fautorisations...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamucontact_autorisations.php | 4 ++-- inclure/inc_messages.html | 13 +------------ json_messages.json.html | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/gamucontact_autorisations.php b/gamucontact_autorisations.php index 0f97582..8403bf8 100644 --- a/gamucontact_autorisations.php +++ b/gamucontact_autorisations.php @@ -23,6 +23,6 @@ function gamucontact_autoriser() { * autorisation pour voir les messages : par défaut 0minirezo * **/ -function gamucontact_autoriser_messages_voir_dist($faire, $type, $id, $qui, $opt) { - return in_array($qui['statut'], ['0minirezo']); +function gamucontact_autoriser_messages_gerer_dist($faire, $type, $id, $qui, $opt) { + return in_array($qui['statut'], ['6forum']); } diff --git a/inclure/inc_messages.html b/inclure/inc_messages.html index 63a1f8d..942c8c2 100644 --- a/inclure/inc_messages.html +++ b/inclure/inc_messages.html @@ -1,4 +1,4 @@ -[(#AUTORISER{voir,messages}|sinon_interdire_acces)] +[(#AUTORISER{gerer,messages}|sinon_interdire_acces)] #SET{url,#URL_PAGE{json_messages.json}} [(#SET{titre_un, <:gamucontact:messages_envoyes_site:>})] @@ -21,15 +21,4 @@ .gamutable table .filtreColonne .objet { border-left: 1px solid rgb(184, 184, 184); } - .gamutable table .filtreColonne button { - padding: .2rem; - display: inline-flex; - background-color: #f5f5f5; - border: 1px solid #cecece; - border-radius: 5px; - margin-left: .5rem; - } - .gamutable table .filtreColonne button::after { - content: "Valider"; - } \ No newline at end of file diff --git a/json_messages.json.html b/json_messages.json.html index 6d91893..de592ed 100644 --- a/json_messages.json.html +++ b/json_messages.json.html @@ -1,5 +1,5 @@ #HTTP_HEADER{Content-Type: application/json; charset=#CHARSET} -[(#AUTORISER{voir,messages}|sinon_interdire_acces)] +[(#AUTORISER{gerer,messages}|sinon_interdire_acces)] [(#ENV{id}|setenv{id_message})] [{