* [bug#59684] Change editDocTemplate to editTemlate.

This commit is contained in:
xieqiyu
2025-02-14 16:03:58 +08:00
committed by 代婷婷
parent ee7cd1d99f
commit b67d8aea5f
+1 -1
View File
@@ -27,7 +27,7 @@ $privs['deleteModule'] = hasPriv('doc', 'deleteTemplateType');
$privs['collect'] = 'no';
$filterTypes = $lang->docTemplate->filterTypes;
if(!hasPriv('doc', 'editDocTemplate')) $filterTypes = array_values(array_filter($filterTypes, function($item){ return $item[0] != 'draft'; }));
if(!hasPriv('doc', 'editTemplate')) $filterTypes = array_values(array_filter($filterTypes, function($item){ return $item[0] != 'draft'; }));
$tableCols = array();
$tableCols['id'] = $lang->docTemplate->id;