From 9ed65123b580fa32fde7e6808828eeb447676d46 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Tue, 21 Dec 2021 11:27:55 +0800 Subject: [PATCH] * Fix bug: display dropmenu when no lib. --- module/api/control.php | 48 ++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/module/api/control.php b/module/api/control.php index 7a9d6b3130..4a6906b2f0 100755 --- a/module/api/control.php +++ b/module/api/control.php @@ -604,7 +604,6 @@ class api extends control echo $select; } - /** * Set doc menu by method name. * @@ -626,41 +625,30 @@ class api extends control } /* page of index menu. */ - if(intval($libID) > 0) + if(common::hasPriv('api', 'create') or common::hasPriv('api', 'createLib')) { - if(common::hasPriv('api', 'create') or common::hasPriv('api', 'createLib')) + $menu .= ""; } $this->lang->TRActions = $menu;