Prune menu sections disabled by enterprise_acl

This commit is contained in:
Akihiro Uchida 2015-07-13 13:51:45 +09:00
parent 25c03bae2f
commit eef7cd9df6
1 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,9 @@ function menu_print_menu (&$menu) {
if ($mainsec == 'class')
continue;
if (enterprise_hook ('enterprise_acl', array ($config['id_user'], $mainsec)) == false)
continue;
if (! isset ($main['id'])) {
$id = 'menu_'.++$idcounter;
}
@ -606,4 +609,4 @@ function menu_sec2_in_sec($sec,$sec2) {
return false;
}
?>
?>