Changeset 71607 in spip-zone for _plugins_/factures/trunk/factures_autorisations.php
- Timestamp:
- Apr 5, 2013, 12:11:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/factures/trunk/factures_autorisations.php
r71568 r71607 110 110 111 111 // ----------------- 112 // Objet lignes_factures112 // Objet factures_lignes 113 113 114 114 … … 116 116 117 117 /** 118 * Autorisation de voir le bouton d'accès rapide de création ( ligne)118 * Autorisation de voir le bouton d'accès rapide de création (facturesligne) 119 119 * 120 120 * @param string $faire Action demandée … … 125 125 * @return bool true s'il a le droit, false sinon 126 126 **/ 127 function autoriser_ lignecreer_menu_dist($faire, $type, $id, $qui, $opt){128 return autoriser('creer', ' ligne', '', $qui, $opt);127 function autoriser_factureslignecreer_menu_dist($faire, $type, $id, $qui, $opt){ 128 return autoriser('creer', 'factures_ligne', '', $qui, $opt); 129 129 } 130 130 131 131 /** 132 * Autorisation de créer ( ligne)132 * Autorisation de créer (facturesligne) 133 133 * 134 134 * @param string $faire Action demandée … … 139 139 * @return bool true s'il a le droit, false sinon 140 140 **/ 141 function autoriser_ ligne_creer_dist($faire, $type, $id, $qui, $opt) {141 function autoriser_facturesligne_creer_dist($faire, $type, $id, $qui, $opt) { 142 142 return in_array($qui['statut'], array('0minirezo', '1comite')); 143 143 } 144 144 145 145 /** 146 * Autorisation de voir ( ligne)146 * Autorisation de voir (facturesligne) 147 147 * 148 148 * @param string $faire Action demandée … … 153 153 * @return bool true s'il a le droit, false sinon 154 154 **/ 155 function autoriser_ ligne_voir_dist($faire, $type, $id, $qui, $opt) {155 function autoriser_facturesligne_voir_dist($faire, $type, $id, $qui, $opt) { 156 156 return true; 157 157 } 158 158 159 159 /** 160 * Autorisation de modifier ( ligne)160 * Autorisation de modifier (facturesligne) 161 161 * 162 162 * @param string $faire Action demandée … … 167 167 * @return bool true s'il a le droit, false sinon 168 168 **/ 169 function autoriser_ ligne_modifier_dist($faire, $type, $id, $qui, $opt) {169 function autoriser_facturesligne_modifier_dist($faire, $type, $id, $qui, $opt) { 170 170 return in_array($qui['statut'], array('0minirezo', '1comite')); 171 171 } 172 172 173 173 /** 174 * Autorisation de supprimer ( ligne)174 * Autorisation de supprimer (facturesligne) 175 175 * 176 176 * @param string $faire Action demandée … … 181 181 * @return bool true s'il a le droit, false sinon 182 182 **/ 183 function autoriser_ ligne_supprimer_dist($faire, $type, $id, $qui, $opt) {183 function autoriser_facturesligne_supprimer_dist($faire, $type, $id, $qui, $opt) { 184 184 return $qui['statut'] == '0minirezo' AND !$qui['restreint']; 185 185 }
Note: See TracChangeset
for help on using the changeset viewer.