* Check auth.

This commit is contained in:
zhujinyong
2022-01-05 09:05:32 +08:00
parent 087cc82369
commit ff9ceaccad
11 changed files with 449 additions and 99 deletions
-37
View File
@@ -50,29 +50,6 @@ class execution extends control
$this->objectType = $this->config->systemMode == 'classic' ? 'project' : 'execution';
}
/**
* The index page.
*
* @param string $locate yes|no locate to the browse page or not.
* @param string $status the executions status, if locate is no, then get executions by the $status.
* @param int $executionID
* @access public
* @return void
*/
public function index($locate = 'auto', $executionID = 0)
{
if($locate == 'yes') $this->locate($this->createLink('execution', 'task'));
$this->commonAction($executionID);
if(common::hasPriv('execution', 'create')) $this->lang->TRActions = html::a($this->createLink('execution', 'create'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->execution->create, '', "class='btn btn-primary'");
$this->view->title = $this->lang->execution->index;
$this->view->position[] = $this->lang->execution->index;
$this->display();
}
/**
* Browse a execution.
*
@@ -863,20 +840,6 @@ class execution extends control
$this->display();
}
/**
* Execution qa dashboard.
*
* @param int $executionID
* @access public
* @return void
*/
public function qa($executionID = 0)
{
$this->commonAction($executionID);
$this->view->title = $this->lang->execution->qa;
$this->display();
}
/**
* Browse bugs of a execution.
*