mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 03:19:05 +02:00
#11567 ignore about menu in acl
This commit is contained in:
parent
01d48c7ba4
commit
2b07b614fc
@ -460,8 +460,9 @@ function menu_print_menu(&$menu)
|
|||||||
($main['sec2'] ?? null),
|
($main['sec2'] ?? null),
|
||||||
]
|
]
|
||||||
) === false
|
) === false
|
||||||
|
|| $mainsec === 'about_operation'
|
||||||
) {
|
) {
|
||||||
if ($count_sub_access > 0) {
|
if ($count_sub_access > 0 || $mainsec === 'about_operation') {
|
||||||
// If any susection have access but main section not, we change main link to first subsection found
|
// If any susection have access but main section not, we change main link to first subsection found
|
||||||
$main['sec2'] = $first_sub_sec2;
|
$main['sec2'] = $first_sub_sec2;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user