function autoriser_configurer($faire, $type, $id, $qui, $opt) { //echo 'faire: ' .$faire . ' - type: ' .$type; if (isset($type)) { if ($type == 'adminvider') { return $qui['statut'] == '0minirezo'; } } return $qui['statut'] == '0minirezo' AND !$qui['restreint']; }