Changeset 113755 in spip-zone
- Timestamp:
- Feb 5, 2019, 6:27:16 PM (2 years ago)
- Location:
- _plugins_/lim/branches/V2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/lim/branches/V2/lim_autorisations.php
r113694 r113755 90 90 } 91 91 92 if (!function_exists('autoriser_joindredocument')) {93 function autoriser_joindredocument($faire, $type, $id, $qui, $opt) {94 $quelles_rubriques = lire_config('lim_rubriques/document');95 is_null($quelles_rubriques) ? $lim_rub = true : $lim_rub = !in_array($id,$quelles_rubriques);96 97 return98 $lim_rub99 AND autoriser_joindredocument_dist($faire, $type, $id, $qui, $opt);100 }101 }102 103 92 if (!function_exists('autoriser_rubrique_creerbrevedans')) { 104 93 function autoriser_rubrique_creerbrevedans($faire, $type, $id, $qui, $opt) { … … 127 116 } 128 117 118 119 if (!function_exists('autoriser_joindredocument')) { 120 function autoriser_joindredocument($faire, $type, $id, $qui, $opt) { 121 // Attention : ici il faut vérifier que le contexte est bien une rubrique 122 if ($type == 'rubrique') { 123 $quelles_rubriques = lire_config('lim_rubriques/document'); 124 is_null($quelles_rubriques) ? $lim_rub = true : $lim_rub = !in_array($id,$quelles_rubriques); 125 } 126 else { 127 $lim_rub = true; 128 } 129 return 130 $lim_rub 131 AND autoriser_joindredocument_dist($faire, $type, $id, $qui, $opt); 132 } 133 } 134 129 135 // if (!function_exists('autoriser_rubrique_publierdans')) { 130 136 // function autoriser_rubrique_publierdans($faire, $type, $id, $qui, $opt) { -
_plugins_/lim/branches/V2/paquet.xml
r113695 r113755 2 2 prefix="lim" 3 3 categorie="maintenance" 4 version="2.0. 1"4 version="2.0.2" 5 5 etat="stable" 6 6 compatibilite="[3.2.0;3.2.*]"
Note: See TracChangeset
for help on using the changeset viewer.