mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
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')
|
if ($mainsec == 'class')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (enterprise_hook ('enterprise_acl', array ($config['id_user'], $mainsec)) == false)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (! isset ($main['id'])) {
|
if (! isset ($main['id'])) {
|
||||||
$id = 'menu_'.++$idcounter;
|
$id = 'menu_'.++$idcounter;
|
||||||
}
|
}
|
||||||
@ -606,4 +609,4 @@ function menu_sec2_in_sec($sec,$sec2) {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user