From 71b936727426df0e4656288b67ca57beeb5751fa Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 24 Mar 2025 08:56:39 +0800 Subject: [PATCH] * [bug#60780,done,0.5h,0h] Fix check doc priv error. --- module/doc/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index c047be256d..2a4cd4304e 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2031,7 +2031,7 @@ class docModel extends model $map[$spaceID] = array_values($libs); } - $docs = $this->dao->select("`id`,`addedBy`,`type`,`lib`,`acl`,`users`,`groups`,`status`,`path`,`deleted`")->from(TABLE_DOC) + $docs = $this->dao->select("`id`,`addedBy`,`type`,`lib`,`acl`,`users`,`readUsers`,`groups`,`readGroups`,`status`,`path`,`deleted`")->from(TABLE_DOC) ->where('lib')->in($libIDList) ->andWhere('type')->ne('chapter') ->fetchAll(); @@ -2261,7 +2261,7 @@ class docModel extends model ->groupBy('root') ->fetchPairs(); - $docs = $this->dao->select("`id`,`addedBy`,`type`,`lib`,`acl`,`users`,`groups`,`status`,`path`,`deleted`")->from(TABLE_DOC) + $docs = $this->dao->select("`id`,`addedBy`,`type`,`lib`,`acl`,`users`,`readUsers`,`groups`,`readGroups`,`status`,`path`,`deleted`")->from(TABLE_DOC) ->where('lib')->in($idList) ->andWhere('type')->ne('chapter') ->andWhere('deleted')->eq('0')