This commit is contained in:
tianshujie
2023-03-31 13:48:30 +08:00
parent ea2b221b4a
commit 535fc22c34
+1 -1
View File
@@ -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;