diff --git a/balint_autorisations.php b/balint_autorisations.php
index d53503b..9693509 100644
--- a/balint_autorisations.php
+++ b/balint_autorisations.php
@@ -102,6 +102,20 @@ function autoriser_auteur_modifier($faire, $type, $id, $qui, $opt) {
}
}
+function autoriser_article_lire($faire, $type, $id, $qui, $opt) {
+ // Si l'article fait partie de la rubrique "Espace membre", il faut être au moins rédacteur ("membre").
+
+ $id_membre = lire_config('balint/id_mots_espace_membre');
+ $id_mot = sql_getfetsel('id_mot','spip_mots','id_groupe='. $id_membre);
+ if (in_array($id_mot, $opt)){
+ return in_array($qui['statut'], array('0minirezo','1comite'));
+ }
+ // Sinon il faut être admin
+ else{
+ return true;
+ }
+}
+
function autoriser_article_modifier($faire, $type, $id, $qui, $opt) {
if(in_array($qui['id_auteur'],auteurs_objet('article',$id))){
diff --git a/breadcrumb/article.html b/breadcrumb/article.html
index d6d5866..66c888e 100644
--- a/breadcrumb/article.html
+++ b/breadcrumb/article.html
@@ -2,29 +2,38 @@
#SET{mots,#ARRAY}
#SET{id_groupe, #INFO_ID_GROUPE{article,#ENV{id_article}}}
+[(#REM On récupère : tous les mots / les mots de la rubrique médiathèque / les mots de la rubrique espace membre )]
[(#SET{mots,#GET{mots}|push{#TITRE}})]
[(#TYPE|=={Médiathèque}|oui)
#SET{id_media,#ID_MOT}
]
+ [(#TYPE|=={Espace Membre}|oui)
+ #SET{id_membre,#ID_MOT}
+ ]
- <:accueil_site:> >
- [(#GET{mots}|find{Séminaires}|oui)
- - Séminaires >
+ [(#GET{id_membre}|oui)
+ - #INFO_TITRE{mot,#GET{id_membre}} >
]
-
- [(#GET{mots}|find{Séminaires}|non)
- [(#GET{id_media}|oui)
- - #INFO_TITRE{mot,#GET{id_media}} >
+ [(#GET{id_membre}|non)
+ [(#GET{mots}|find{Séminaires}|oui)
+ - Séminaires >
]
- [(#GET{id_media}|non)
- [(#GET{id_groupe}|oui)
- - Groupes >
- - #INFO_SURTITRE{article,#GET{id_groupe}} >
+ [(#GET{mots}|find{Séminaires}|non)
+ [(#GET{id_media}|oui)
+ - #INFO_TITRE{mot,#GET{id_media}} >
+ ]
+
+ [(#GET{id_media}|non)
+ [(#GET{id_groupe}|oui)
+ - Groupes >
+ - #INFO_SURTITRE{article,#GET{id_groupe}} >
+ ]
]
]
]
diff --git a/content/article.html b/content/article.html
index 576c6b7..ef2263a 100644
--- a/content/article.html
+++ b/content/article.html
@@ -4,74 +4,19 @@
-
-
+ #SET{mots,#ARRAY}
+
+ [(#SET{mots,#GET{mots}|push{#ID_MOT}})]
+
+ [(#AUTORISER{lire, article, #ID_ARTICLE,'',#GET{mots}}|?{
+
,
+ Votre n'avez pas l'autorisation de lire cet article.
+ })]
- [(#AUTORISER{modifier, article, #ID_ARTICLE})
-
- ]
-
-
-
-
-
#TITRE
- [
(#SOUSTITRE)
]
- [(#DATE_AGENDA|oui)
-
#DATE_AGENDA
- ]
-
- [(#REM) On n'affiche plus la date.
- [(#DATE_AGENDA|non)
-
[(#DATE|affdate_jourcourt)]
- ]
- ]
-
-
-
-
#TEXTE
-
-
-
- [(#REM) afficher mots-clés et tags dont le groupe est "important" ]
-
-
- #TITRE
-
-
-
-
-
-
-
-
-
-
diff --git a/inclure/article_contenu.html b/inclure/article_contenu.html
new file mode 100644
index 0000000..cdec47c
--- /dev/null
+++ b/inclure/article_contenu.html
@@ -0,0 +1,67 @@
+
+
+
+
+[(#AUTORISER{modifier, article, #ID_ARTICLE})
+
+]
+
+
+
+
+
#TITRE
+ [
(#SOUSTITRE)
]
+ [(#DATE_AGENDA|oui)
+
#DATE_AGENDA
+ ]
+
+ [(#REM) On n'affiche plus la date.
+ [(#DATE_AGENDA|non)
+
[(#DATE|affdate_jourcourt)]
+ ]
+ ]
+
+
+
+
#TEXTE
+
+
+
+ [(#REM) afficher mots-clés et tags dont le groupe est "important" ]
+
+
+ #TITRE
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file