* fix bug #15083,15079.

This commit is contained in:
王怡栋
2021-09-10 11:34:10 +08:00
parent 9bda624e57
commit 2fadc69fa3
+1 -1
View File
@@ -63,7 +63,7 @@ class executionModel extends model
*/
public function setMenu($executionID, $buildID = 0, $extra = '')
{
if(!$this->app->user->admin and strpos(",{$this->app->user->view->sprints},", ",$executionID,") === false) die(js::error($this->lang->execution->accessDenied) . js::locate('back'));
if(!$this->app->user->admin and strpos(",{$this->app->user->view->sprints},", ",$executionID,") === false and !defined('TUTORIAL')) die(js::error($this->lang->execution->accessDenied) . js::locate('back'));
$executions = $this->loadModel('execution')->getPairs(0, 'all', 'nocode');
if(!$executionID and $this->session->execution) $executionID = $this->session->execution;