Skip to content

Commit

Permalink
Fix to rely on displaying visible domains API
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 18, 2023
1 parent e1578f6 commit 9a848d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion navigation-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ sub nav_list_combined_menu
"title=\"" . virtual_server::show_domain_name($_) . "\""]
}
grep {virtual_server::can_edit_domain($_)}
sort {$a->{'dom'} cmp $b->{'dom'}} virtual_server::list_domains()];
sort {$a->{'dom'} cmp $b->{'dom'}} virtual_server::list_visible_domains()];
}
my $data_title =
$item->{'module'} eq 'virtual-server' ? $theme_text{'right_fdoms'} : $theme_text{'right_fvm2'};
Expand Down
2 changes: 1 addition & 1 deletion tconfig-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ sub theme_settings_format
['index.cgi', $theme_text{'theme_config_virtualmin'}],
map {[$_->{'id'}, &virtual_server::show_domain_name($_)]}
grep {&virtual_server::can_edit_domain($_)}
sort {$a->{'dom'} cmp $b->{'dom'}} &virtual_server::list_domains()
sort {$a->{'dom'} cmp $b->{'dom'}} &virtual_server::list_visible_domains()
]);
}
} elsif ($k eq 'settings_right_cloudmin_default') {
Expand Down

0 comments on commit 9a848d2

Please sign in to comment.