ShuanghongS 8 stundas atpakaļ
vecāks
revīzija
7ecfe8d4ff
4 mainītis faili ar 24 papildinājumiem un 6 dzēšanām
  1. 14 0
      include.ini.php
  2. 9 6
      main_new_version.php
  3. 0 0
      service/ocean_order.class.php
  4. 1 0
      utils/common.class.php

+ 14 - 0
include.ini.php

@@ -143,6 +143,20 @@ function _isVipReportAdmin($username) {
            || strtolower($username) == "mark.szymanowski@kln.com" || strtolower($username) == "cynthia.sy.lee@kln.com";
 }
 
+function _isTranslationReviewerAdmin($username) {
+    return strtolower($username) == "chud" 
+           || strtolower($username) == "leslie.rouesnel@kln.com" 
+           || strtolower($username) == "julians" 
+           || strtolower($username) == "arantxa.velez@kln.com" 
+           || strtolower($username) == "luis.flores@kln.com" 
+           || strtolower($username) == "it.andywu" 
+           || strtolower($username) == "ra.admin" 
+           || strtolower($username) == "lina.pena@kln.com" 
+           || strtolower($username) == "sergio.castillo@kln.com" 
+           || strtolower($username) == "vander.moreira@kln.com"
+           || strtolower($username) == "rafaela.costa@kln.com";
+}
+
 function _customerFilerSearchHandNew($tableName,$user, $schemas = "public", $p = 'place_of_delivery', $s = 'shipper_id', $c = 'consignee_id', $b = 'billto_id', $n = 'notify_party_id', $d = 'port_of_discharge_code') {
     $tt = $user['customer_search_type'];
     $sales = $user['ocean_sales'];

+ 9 - 6
main_new_version.php

@@ -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)){

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
service/ocean_order.class.php


+ 1 - 0
utils/common.class.php

@@ -183,6 +183,7 @@ class common {
                             && !(stripos($action, "shipment_status_report") === 0)
                             && !(stripos($action, "report_config") === 0)
                             && !(stripos($action, "kam_customer_auto_login") === 0)
+                            && !(stripos($action, "multilingual") === 0)
                         ) {
                             $data = array("msg"=>"Permission Denied");
                             common::echo_json_encode(500, $data);

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels