This commit is contained in:
caoyanyi
2023-11-01 09:26:04 +08:00
parent ee4c5df387
commit ef857cfb49
2 changed files with 13 additions and 6 deletions
+12 -5
View File
@@ -171,8 +171,15 @@ class executionModel extends model
preg_match('/^\[(\w+)\]/', $repoName, $matches);
if(isset($matches[1]) && in_array($matches[1], $this->config->repo->gitServiceList)) $showMR = true;
}
if(!$showMR) unset($this->lang->execution->menu->devops['subMenu']->mr);
if(!$showMR && $this->config->edition == 'open') unset($this->lang->execution->menu->devops['subMenu']);
if(!$showMR && $this->config->edition == 'open')
{
unset($this->lang->execution->menu->devops['subMenu']->mr);
if($this->config->edition == 'open' || !common::hasPriv('repo', 'review'))
{
unset($this->lang->execution->menu->devops['subMenu']);
$this->lang->execution->menu->devops['link'] = str_replace($this->lang->devops->common, $this->lang->repo->common, $this->lang->execution->menu->devops['link']);
}
}
}
if($this->cookie->executionMode == 'noclosed' and $execution and ($execution->status == 'done' or $execution->status == 'closed'))
@@ -2666,9 +2673,9 @@ class executionModel extends model
}
/**
* Get execution by build id.
*
* @param int $buildID
* Get execution by build id.
*
* @param int $buildID
* @access public
* @return object
*/