From 441fd846bacd0536e844f7dfc8a5e3443980197f Mon Sep 17 00:00:00 2001 From: Wenrui LI Date: Tue, 29 Mar 2022 17:13:12 +0800 Subject: [PATCH] * show chat admin menu only in standalone lite vision, bug #21295. --- extension/lite/common/ext/lang/en/lite.php | 2 +- extension/lite/common/ext/lang/zh-cn/lite.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/lite/common/ext/lang/en/lite.php b/extension/lite/common/ext/lang/en/lite.php index ef507ff592..f8f60da3e7 100644 --- a/extension/lite/common/ext/lang/en/lite.php +++ b/extension/lite/common/ext/lang/en/lite.php @@ -266,7 +266,7 @@ $lang->createIcons['execution'] = 'kanban'; /* Xuan */ global $config; -if(isset($config->xuanxuan)) +if(isset($config->xuanxuan) && strpos($config->visions, ',rnd,') === false) { $lang->xuanxuan = new stdclass(); $lang->admin->menu->xuanxuan = array('link' => 'Chat|admin|xuanxuan', 'subModule' => 'client,setting'); diff --git a/extension/lite/common/ext/lang/zh-cn/lite.php b/extension/lite/common/ext/lang/zh-cn/lite.php index 9e37799292..c49dd6958c 100644 --- a/extension/lite/common/ext/lang/zh-cn/lite.php +++ b/extension/lite/common/ext/lang/zh-cn/lite.php @@ -266,7 +266,7 @@ $lang->createIcons['execution'] = 'kanban'; /* Xuan */ global $config; -if(isset($config->xuanxuan)) +if(isset($config->xuanxuan) && strpos($config->visions, ',rnd,') === false) { $lang->xuanxuan = new stdclass(); $lang->admin->menu->xuanxuan = array('link' => '聊天|admin|xuanxuan', 'subModule' => 'client,setting');