Skip to content

Commit

Permalink
change the condition to shown the module in administration
Browse files Browse the repository at this point in the history
  • Loading branch information
ainaraRT committed Jan 21, 2025
1 parent 20185d7 commit fd0359b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
];

// Search inside the arrays of the admin_group_header for the section in which we want to add our new subsection, also getting its key
foreach ($admin_group_header as $key => $section) {
if ($section[0] === 'LBL_ADMIN_TOOLS_TITLE' && isset($section[3])) {
foreach (array_keys($admin_group_header) as $key) {
if ($admin_group_header[$key][0] === 'LBL_ADMIN_TOOLS_TITLE' && isset($admin_group_header[$key][3]['Administration'])) {
// We add the subsection to the end of the defined array
$admin_group_header[$key][3]['Administration'] = array_merge($admin_group_header[$key][3]['Administration'], $admin_option_defs['Administration']);
break;
Expand Down

0 comments on commit fd0359b

Please sign in to comment.