From daab91a2c7c4c232bfc5d92145d3d832e24fd3fb Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 7 Nov 2023 21:58:04 -0500 Subject: [PATCH] * Merge #9144abbd8a,Remove unused code. --- module/my/model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/my/model.php b/module/my/model.php index 8749ef8aee..c73c7b423c 100644 --- a/module/my/model.php +++ b/module/my/model.php @@ -1104,7 +1104,6 @@ class myModel extends model $stmt = $this->dao->select("t1.*")->from(TABLE_DEMAND)->alias('t1') ->leftJoin(TABLE_DEMANDREVIEW)->alias('t2')->on('t1.id = t2.demand and t1.version = t2.version') ->where('t1.deleted')->eq(0) - ->beginIF(!$this->app->user->admin)->andWhere('t1.product')->in($this->app->user->view->products)->fi() ->andWhere('t2.reviewer')->eq($this->app->user->account) ->andWhere('t2.result')->eq('') ->andWhere('t1.vision')->eq($this->config->vision)