From 1f56b05ceabb99b5b9bda314b9c1f45b8cf12a8d Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 12 Apr 2023 14:13:15 +0800 Subject: [PATCH] * Fix bug #34076. --- module/doc/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 4da64d2821..1527e4e7e4 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1325,7 +1325,8 @@ class docModel extends model $lib = $this->getLibById($object->lib); if($this->app->user->admin and !empty($lib) and $lib->type != 'mine') return true; - if(in_array($object->acl, array('open', 'public')) and $this->checkPrivLib($lib)) return true; + if(!$this->checkPrivLib($lib)) return false; + if(in_array($object->acl, array('open', 'public'))) return true; $account = ",{$this->app->user->account},"; if(isset($object->addedBy) and $object->addedBy == $this->app->user->account) return true;