[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins / menus_1 / inc / menus_autoriser.php
1 <?php
2
3 // Sécurité
4 if (!defined('_ECRIRE_INC_VERSION')) {
5 return;
6 }
7
8 function menus_autoriser() {
9 }
10
11 function autoriser_menu_modifier_dist($faire, $type, $id, $qui, $opt) {
12 if ($qui['statut'] == '0minirezo' and !$qui['restreint']) {
13 return true;
14 } else {
15 return false;
16 }
17 }
18
19 function autoriser_menus_tous_dist($faire, $type, $id, $qui, $opt) {
20 return autoriser('modifier', 'menu', $id, $qui, $opt);
21 }