* [task#150385] fix bug for devops menu.

This commit is contained in:
liyang
2025-09-30 14:06:12 +08:00
parent 820afcb881
commit f18bd7aeac
4 changed files with 14 additions and 1 deletions
+5
View File
@@ -230,6 +230,11 @@ class executionModel extends model
if(!$features['burn']) unset($this->lang->execution->menu->burn);
if(!$features['other']) unset($this->lang->execution->menu->other);
if(!$features['story'] && $this->config->edition == 'open') unset($this->lang->execution->menu->view);
if($this->config->inCompose)
{
$repoServers = $this->loadModel('pipeline')->getPairs($this->config->pipeline->checkRepoServers);
if(empty($repoServers)) unset($this->lang->execution->menu->devops);
}
return true;
}