* [bug#68845,done,0.2h] fix bug.
This commit is contained in:
@@ -2422,9 +2422,16 @@ class projectModel extends model
|
||||
$this->lang->switcherMenu = $this->getSwitcher($projectID, $this->app->rawModule, $this->app->rawMethod);
|
||||
|
||||
/* 无迭代项目不开启过程删除导航。 */
|
||||
if($this->config->edition != 'open' && !$this->loadModel('workflowgroup')->hasFeature((int)$project->workflowGroup, 'process'))
|
||||
if($this->config->edition != 'open')
|
||||
{
|
||||
unset($lang->project->menu->other['dropMenu']->pssp);
|
||||
$this->loadModel('workflowgroup');
|
||||
if(!$this->workflowgroup->hasFeature((int)$project->workflowGroup, 'process')) unset($lang->project->menu->other['dropMenu']->pssp);
|
||||
if(!$this->workflowgroup->hasFeature((int)$project->workflowGroup, 'deliverable'))
|
||||
{
|
||||
unset($lang->project->menu->deliverable);
|
||||
unset($lang->project->menu->auditplan['subMenu']->deliverable);
|
||||
}
|
||||
if(!$this->workflowgroup->hasFeature((int)$project->workflowGroup, 'auditplan')) unset($lang->project->menu->other['dropMenu']->auditplan);
|
||||
}
|
||||
|
||||
/* If projectID is set, cannot use homeMenu. */
|
||||
|
||||
Reference in New Issue
Block a user