From da8f3ade7f2a200aa2e14946ba313b37db4af0f0 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 19 Apr 2023 10:39:19 +0800 Subject: [PATCH] * Fix bug #34350. --- module/doc/view/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/view/view.html.php b/module/doc/view/view.html.php index a79780ae5b..7350a2c415 100644 --- a/module/doc/view/view.html.php +++ b/module/doc/view/view.html.php @@ -31,7 +31,7 @@
createLink('doc', $exportMethod, "libID=$libID&moduleID=0&docID=$docID"), " " . $lang->export, 'hiddenwin', "class='btn btn-link' id='docExport'"); - if(common::hasPriv('api', 'createLib')) echo html::a($this->createLink('api', 'createLib', "type=" . ($objectType ? $objectType : 'nolink') . "&objectID=$objectID"), ' ' . $lang->api->createLib, '', 'class="btn btn-secondary iframe" data-width="800px"'); + if(common::hasPriv('doc', 'createLib')) echo html::a($this->createLink('doc', 'createLib', "type=" . ($objectType ? $objectType : 'nolink') . "&objectID=$objectID"), ' ' . $lang->api->createLib, '', 'class="btn btn-secondary iframe" data-width="800px"'); if(common::hasPriv('doc', 'create')) echo $this->doc->printCreateBtn($lib, $moduleID); ?>