From 28eec1c4c3bbaeb83ea74a4c4236de9bdc47b92b Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 4 Jan 2023 15:29:05 +0800 Subject: [PATCH 1/5] * Fix bug #31322. --- module/qa/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/qa/model.php b/module/qa/model.php index f807bbce06..a89af42d0d 100644 --- a/module/qa/model.php +++ b/module/qa/model.php @@ -37,6 +37,7 @@ class qaModel extends model if(!in_array($this->app->rawModule, $this->config->qa->noDropMenuModule)) $this->lang->switcherMenu = $this->product->getSwitcher($productID, $extra, $branch); if($this->app->rawModule == 'product' and $this->app->rawMethod == 'showerrornone') $this->lang->switcherMenu = ''; + if(!common::hasPriv('zahost', 'browse') and !common::hasPriv('zanode', 'browse')) unset($this->lang->qa->menu->automation); common::setMenuVars('qa', $productID); } From 10694147f60fbff0e308706e9796463723e448d8 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 4 Jan 2023 16:59:40 +0800 Subject: [PATCH 2/5] * Fix bug #31359. --- module/zahost/view/view.html.php | 3 ++- module/zanode/view/view.html.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/zahost/view/view.html.php b/module/zahost/view/view.html.php index 75aaadf86c..eab0f15d41 100644 --- a/module/zahost/view/view.html.php +++ b/module/zahost/view/view.html.php @@ -18,7 +18,8 @@ hostID}&orderBy=%s";?>