* Finish task #84592.

This commit is contained in:
liumengyi
2023-02-14 16:24:14 +08:00
parent 48da3660e9
commit f12271a1f2
2 changed files with 10 additions and 7 deletions
+4 -2
View File
@@ -66,8 +66,6 @@ class executionModel extends model
$execution = $this->getByID($executionID);
if(!$execution) return;
if($execution->type == 'stage') unset($this->lang->execution->menu->settings['subMenu']->products);
if($execution and $execution->type == 'kanban')
{
global $lang;
@@ -88,6 +86,10 @@ class executionModel extends model
$this->lang->execution->menu->settings['subMenu']->whitelist = array('link' => "{$this->lang->whitelist}|execution|whitelist|executionID=%s", 'subModule' => 'personnel', 'alias' => 'addwhitelist');
}
$project = $this->loadModel('project')->getByID($execution->project);
if($execution->type == 'stage' or (!empty($project) and $project->model == 'waterfallplus')) unset($this->lang->execution->menu->settings['subMenu']->products);
if(!$this->app->user->admin and strpos(",{$this->app->user->view->sprints},", ",$executionID,") === false and !defined('TUTORIAL') and $executionID != 0) return print(js::error($this->lang->execution->accessDenied) . js::locate('back'));
$executions = $this->getPairs(0, 'all', 'nocode');