This commit is contained in:
tianshujie
2023-03-09 11:33:03 +08:00
parent 7a77fce8e4
commit 868a896ae4
+10
View File
@@ -820,6 +820,16 @@ class devModel extends model
if(!in_array($type, $this->config->dev->navTypes)) return $menuTree;
$mainNav = $type == 'second' ? $this->lang->mainNav : array();
if($this->config->vision != 'open' and $type == 'second')
{
$flowNav = $this->dao->select('module')->from(TABLE_WORKFLOW)
->where('buildin')->eq(0)
->andWhere('vision')->eq($this->config->vision)
->andWhere('navigator')->in('primary,secondary')
->fetchPairs();
foreach($flowNav as $nav) unset($mainNav->$nav);
}
if($type != 'second')
{
/* Set main nav list. */