* Fix bug #39993.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user