From 535fc22c34c8a64551d4822d799b85fb1e320eec Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 31 Mar 2023 13:48:30 +0800 Subject: [PATCH] * Fix bug #33567. --- 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 bd42f3bde2..83f1e8e9d2 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1170,7 +1170,7 @@ class docModel extends model if(isset($extraDocLibs[$object->id])) return true; } - if($object->acl == 'default' and (in_array($object->type, array('product', 'execution')))) + if($object->acl == 'default' and (!empty($object->product) or !empty($object->execution))) { $acls = $this->app->user->rights['acls']; if(!empty($object->product) and !empty($acls['products']) and !in_array($object->product, $acls['products'])) return false;