Prune menu sections disabled by enterprise_acl
This commit is contained in:
parent
25c03bae2f
commit
eef7cd9df6
|
@ -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;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue