N°5620-renaming IsOrgMenuFilterAllowed<-IsSiloSelectionEnabled and made public

This commit is contained in:
odain
2022-11-22 07:31:12 +01:00
parent a5ea868609
commit ad052dd861
2 changed files with 4 additions and 4 deletions

View File

@@ -289,7 +289,7 @@ class NavigationMenu extends UIBlock implements iKeyboardShortcut
}
}
private function IsOrgMenuFilterAllowed() : bool {
public function IsSiloSelectionEnabled() : bool {
return MetaModel::GetConfig()->Get('navigation_menu.show_organization_filter');
}
@@ -304,7 +304,7 @@ class NavigationMenu extends UIBlock implements iKeyboardShortcut
$this->bHasSiloSelected = false;
$this->sSiloLabel = null;
if (! $this->IsOrgMenuFilterAllowed()){
if (! $this->IsSiloSelectionEnabled()){
return;
}