* [bug#56009,done,0.5h] set acl to open when create doc not in my space.

This commit is contained in:
zhouxin
2024-10-16 08:39:40 +08:00
committed by sunhao
parent 1c17962bd2
commit 7f3dc1067f
+1
View File
@@ -349,6 +349,7 @@ class doc extends control
->setDefault('editedBy', $this->app->user->account)
->get();
$docData->acl = $objectType == 'mine' ? 'private' : 'open';
$docResult = $this->doc->create($docData, $this->post->labels);
if(!$docResult || dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
return $this->docZen->responseAfterCreate($docData->lib, $docResult);