* [task#144516,doing,0.5h] Do not update white list for child template.

This commit is contained in:
daitingting
2025-06-09 11:36:56 +00:00
parent 0c10054a15
commit 67291a7c23
+2 -2
View File
@@ -1768,14 +1768,14 @@ class docModel extends model
if(dao::isError()) return false;
if($files) $this->file->updateObjectID($this->post->uid, $docID, 'doc');
/* 如果修改了父模板,子模板也同步更新相关信息。*/
/* If the parent template is modified, the child template will also update the relevant information synchronously. */
if(!empty($oldDoc->templateType) && empty($doc->parent) && $basicInfoChanged)
{
$this->dao->update(TABLE_DOC)
->set('module')->eq($doc->module)
->set('lib')->eq($doc->lib)
->set('acl')->eq($doc->acl)
->set('groups')->eq($doc->groups)
->set('users')->eq($doc->users)
->where("FIND_IN_SET('{$docID}', `path`)")
->exec();
}