From 9b139eb1a9245b52696f2d64bdba04bb28252a04 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 18 Jan 2022 16:24:18 +0800 Subject: [PATCH] * Fix bug #18687. --- module/doc/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index bfd4127b49..2f9349ae0b 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1335,9 +1335,9 @@ class docModel extends model /* Project permissions for DocLib whitelist. */ if($this->app->tab == 'doc') { - $myObjects = $this->dao->select('t2.id, t2.name')->from(TABLE_DOCLIB)->alias('t1') - ->leftjoin(TABLE_PROJECT)->alias('t2')->on('t1.project=t2.id') - ->where("CONCAT(',', t1.users, ',')")->like("%,{$this->app->user->account},%") + $myObjects = $this->dao->select('t1.id, t1.name')->from(TABLE_PROJECT)->alias('t1') + ->leftjoin(TABLE_DOCLIB)->alias('t2')->on('t2.project=t1.id') + ->where("CONCAT(',', t2.users, ',')")->like("%,{$this->app->user->account},%") ->fetchPairs(); }