|
@@ -107,13 +107,18 @@ switch ($action) {
|
|
|
$children[] = array("index" =>$index.'-2',"label" =>"System Settings","path"=>"/SystemSettings");
|
|
$children[] = array("index" =>$index.'-2',"label" =>"System Settings","path"=>"/SystemSettings");
|
|
|
//只有chud的账户可以看日志记录
|
|
//只有chud的账户可以看日志记录
|
|
|
if(strtolower(_getLoginName()) == "chud"
|
|
if(strtolower(_getLoginName()) == "chud"
|
|
|
- || strtolower(_getLoginName()) == strtolower("IT.Andywu")
|
|
|
|
|
|
|
+ || strtolower(_getLoginName()) == strtolower("IT.Andywu")
|
|
|
|| strtolower(_getLoginName()) == "ra.admin"){
|
|
|| strtolower(_getLoginName()) == "ra.admin"){
|
|
|
$children[] = array("index" =>$index.'-3',"label" =>"Chat Log","path"=>"/chat-log");
|
|
$children[] = array("index" =>$index.'-3',"label" =>"Chat Log","path"=>"/chat-log");
|
|
|
$children[] = array("index" =>$index.'-4',"label" =>"AI API Log","path"=>"/ai-api-log");
|
|
$children[] = array("index" =>$index.'-4',"label" =>"AI API Log","path"=>"/ai-api-log");
|
|
|
$children[] = array("index" =>$index.'-5',"label" =>"Operation Log","path"=>"/Operationlog");
|
|
$children[] = array("index" =>$index.'-5',"label" =>"Operation Log","path"=>"/Operationlog");
|
|
|
$children[] = array("index" =>$index.'-6',"label" =>"Prompt Configuration","path"=>"/PromptConfiguration");
|
|
$children[] = array("index" =>$index.'-6',"label" =>"Prompt Configuration","path"=>"/PromptConfiguration");
|
|
|
}
|
|
}
|
|
|
|
|
+ //特殊放开一个帐号
|
|
|
|
|
+ if(strtolower(_getLoginName()) == strtolower("michaelW")){
|
|
|
|
|
+ $children[] = array("index" =>$index.'-4',"label" =>"AI API Log","path"=>"/ai-api-log");
|
|
|
|
|
+ $children[] = array("index" =>$index.'-6',"label" =>"Prompt Configuration","path"=>"/PromptConfiguration");
|
|
|
|
|
+ }
|
|
|
$systemManagement["children"] = $children;
|
|
$systemManagement["children"] = $children;
|
|
|
if (!empty($children)){
|
|
if (!empty($children)){
|
|
|
$menuList[] = $systemManagement;
|
|
$menuList[] = $systemManagement;
|