* [misc] remove default acl when create doc.

This commit is contained in:
zhouxin
2024-10-16 08:39:42 +08:00
committed by sunhao
parent ab94c25309
commit a510dc6df1
-1
View File
@@ -349,7 +349,6 @@ 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);