From 01fe1161a90fea6034306503d6afef3b53936e2e Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 13 Sep 2021 15:25:45 +0800 Subject: [PATCH] * Fix bug #15133. --- module/product/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/model.php b/module/product/model.php index 9e4cb3ce60..4c13391b76 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1561,6 +1561,7 @@ class productModel extends model ->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.project=t2.id') ->where('type')->in('stage,sprint') ->beginIF($this->config->systemMode == 'new')->andWhere('t2.project')->in(array_keys($projectList))->fi() + ->beginIF(!$this->app->user->admin)->andWhere('t1.project')->in($this->app->user->view->sprints)->fi() ->andWhere('t1.product')->in(array_keys($productList)) ->andWhere('status')->eq('doing') ->andWhere('deleted')->eq('0')