diff --git a/module/doc/ui/templatelist.html.php b/module/doc/ui/templatelist.html.php index df6e925553..bf5fa7a430 100644 --- a/module/doc/ui/templatelist.html.php +++ b/module/doc/ui/templatelist.html.php @@ -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;