Fix IMPORTANT : pour accéder au gamutable de gestion des messages il faut un droit messages_gerer (et non pas messages_voir). POINT A VERIFIER : l'autorisation ne semble pas passer par gamucontact_autorisations...

This commit is contained in:
cy_altern 2025-07-09 19:03:47 +02:00
parent 1d9883d3a0
commit 55e14788eb
3 changed files with 4 additions and 15 deletions

View file

@ -23,6 +23,6 @@ function gamucontact_autoriser() {
* autorisation pour voir les messages : par défaut 0minirezo * autorisation pour voir les messages : par défaut 0minirezo
* *
**/ **/
function gamucontact_autoriser_messages_voir_dist($faire, $type, $id, $qui, $opt) { function gamucontact_autoriser_messages_gerer_dist($faire, $type, $id, $qui, $opt) {
return in_array($qui['statut'], ['0minirezo']); return in_array($qui['statut'], ['6forum']);
} }

View file

@ -1,4 +1,4 @@
[(#AUTORISER{voir,messages}|sinon_interdire_acces)] [(#AUTORISER{gerer,messages}|sinon_interdire_acces)]
#SET{url,#URL_PAGE{json_messages.json}} #SET{url,#URL_PAGE{json_messages.json}}
[(#SET{titre_un, <i class="fa fa-send"></i> <:gamucontact:messages_envoyes_site:>})] [(#SET{titre_un, <i class="fa fa-send"></i> <:gamucontact:messages_envoyes_site:>})]
@ -21,15 +21,4 @@
.gamutable table .filtreColonne .objet { .gamutable table .filtreColonne .objet {
border-left: 1px solid rgb(184, 184, 184); 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";
}
</style> </style>

View file

@ -1,5 +1,5 @@
#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET} #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})] [(#ENV{id}|setenv{id_message})]
[{ [{