#11567 ignore about menu in acl

This commit is contained in:
Daniel Cebrian 2023-06-19 15:30:08 +02:00
parent 01d48c7ba4
commit 2b07b614fc
1 changed files with 2 additions and 1 deletions

View File

@ -460,8 +460,9 @@ function menu_print_menu(&$menu)
($main['sec2'] ?? null),
]
) === 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
$main['sec2'] = $first_sub_sec2;
} else {