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')