From e1cff545d651e2bc207c8fb7a43b53c7990a6b8d Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 24 Apr 2023 14:31:31 +0800 Subject: [PATCH] * Fix bug #34676. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 4fa9d8ace9..7710c754f6 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -647,7 +647,7 @@ class docModel extends model $allLibs = $this->getLibs('all'); $allLibIDList = array_keys($allLibs); - $hasPrivDocIdList = $this->getPrivDocs(); + $hasPrivDocIdList = $this->getPrivDocs($allLibIDList); if($type == 'view' or $type == 'collect') { $docs = $this->dao->select('t1.*,t3.name as libName,t3.type as objectType,max(t2.`date`) as date')->from(TABLE_DOC)->alias('t1')