This commit is contained in:
tianshujie
2023-04-12 14:13:15 +08:00
parent 754928d906
commit 1f56b05cea
+2 -1
View File
@@ -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;