From 894a3c6a334d44a1051bb1ff860a461604c7693c Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 25 Feb 2021 10:18:07 +0800 Subject: [PATCH] * Adjust the code. --- module/testsuite/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testsuite/model.php b/module/testsuite/model.php index b98f13c1b5..dad4a1bb49 100644 --- a/module/testsuite/model.php +++ b/module/testsuite/model.php @@ -133,7 +133,7 @@ class testsuiteModel extends model { return $this->dao->select("*")->from(TABLE_TESTSUITE) ->where('product')->eq((int)$productID) - ->andWhere('PRJ')->eq($this->session->PRJ) + ->beginIF($this->lang->navGroup->testsuite != 'qa')->andWhere('PRJ')->eq($this->session->PRJ)->fi() ->andWhere('deleted')->eq(0) ->andWhere("(`type` = 'public' OR (`type` = 'private' and addedBy = '{$this->app->user->account}'))") ->orderBy($orderBy)