|
|
@@ -79,7 +79,7 @@ switch ($action) {
|
|
|
$menuSetting = array("Ocean Booking" => array("label"=>"Booking","cleaned_field_name"=>"menu.booking","path"=>"/booking","icon"=>"icon_booking__fill_b"),
|
|
|
"Ocean B/L Info." => array("label"=>"Tracking","cleaned_field_name"=>"menu.tracking","path"=>"/tracking","icon"=>"icon_tracking__fill_b"));
|
|
|
$menuList = array();
|
|
|
- $menuList[] = array("index"=>'1',"label"=>"Dashboard","icon"=>"icon_data_fill_b","path"=>"/dashboard");
|
|
|
+ $menuList[] = array("index"=>'1',"label"=>"Dashboard","cleaned_field_name"=>"menu.dashboard","icon"=>"icon_data_fill_b","path"=>"/dashboard");
|
|
|
$index = 2;
|
|
|
foreach ($rs as $value) {
|
|
|
if ($value['f_column'] == "Shipment Info."){
|
|
|
@@ -127,15 +127,18 @@ switch ($action) {
|
|
|
$children[] = array("index" =>$index.'-7',"label" =>"Template Management","cleaned_field_name"=>"menu.template_management","path"=>"/template-management");
|
|
|
}
|
|
|
$children[] = array("index" =>$index.'-1',"label" =>"System Message","cleaned_field_name"=>"menu.system_message","path"=>"/system-message");
|
|
|
- $children[] = array("index" =>$index.'-2',"label" =>"System Settings","cleaned_field_name"=>"menu.system_settings","path"=>"/system-settings");
|
|
|
+ $children[] = array("index" =>$index.'-2',"label" =>"System Settings","cleaned_field_name"=>"menu.system_settings","path"=>"/system-settings");
|
|
|
+ if(_isTranslationReviewerAdmin(_getLoginName())){
|
|
|
+ $children[] = array("index" =>$index.'-3',"label" =>"multilingual_config","cleaned_field_name"=>"menu.multilingual_config","path"=>"/multilingual-config");
|
|
|
+ }
|
|
|
//只有chud的账户可以看日志记录
|
|
|
if(strtolower(_getLoginName()) == "chud"
|
|
|
|| strtolower(_getLoginName()) == strtolower("IT.Andywu")
|
|
|
|| strtolower(_getLoginName()) == "ra.admin"){
|
|
|
- $children[] = array("index" =>$index.'-3',"label" =>"Chat Log","cleaned_field_name"=>"menu.chat_log","path"=>"/chat-log");
|
|
|
- $children[] = array("index" =>$index.'-4',"label" =>"AI API Log","cleaned_field_name"=>"menu.ai_api_log","path"=>"/ai-api-log");
|
|
|
- $children[] = array("index" =>$index.'-5',"label" =>"Operation Log","cleaned_field_name"=>"menu.operation_log","path"=>"/operation-log");
|
|
|
- $children[] = array("index" =>$index.'-6',"label" =>"Prompt Configuration","cleaned_field_name"=>"menu.prompt_configuration","path"=>"/prompt-configuration");
|
|
|
+ $children[] = array("index" =>$index.'-4',"label" =>"Chat Log","cleaned_field_name"=>"menu.chat_log","path"=>"/chat-log");
|
|
|
+ $children[] = array("index" =>$index.'-5',"label" =>"AI API Log","cleaned_field_name"=>"menu.ai_api_log","path"=>"/ai-api-log");
|
|
|
+ $children[] = array("index" =>$index.'-6',"label" =>"Operation Log","cleaned_field_name"=>"menu.operation_log","path"=>"/operation-log");
|
|
|
+ $children[] = array("index" =>$index.'-7',"label" =>"Prompt Configuration","cleaned_field_name"=>"menu.prompt_configuration","path"=>"/prompt-configuration");
|
|
|
}
|
|
|
$systemManagement["children"] = $children;
|
|
|
if (!empty($children)){
|