hsun 8 сар өмнө
parent
commit
e95ecd8e17

+ 2 - 2
controllers/data_manage/edb_info.go

@@ -162,7 +162,7 @@ func (this *EdbInfoController) EdbInfoSearch() {
 			br.ErrMsg = "获取当前账号的不可见指标配置失败,err:" + err.Error()
 			return
 		}
-		if conf != nil {
+		if conf != nil && conf.Id > 0 {
 			resp.Status = 3
 		}
 	} else {
@@ -2188,7 +2188,7 @@ func (this *EdbInfoController) EdbInfoList() {
 			br.ErrMsg = "获取当前账号的不可见指标配置失败,err:" + err.Error()
 			return
 		}
-		if conf != nil {
+		if conf != nil && conf.Id > 0 {
 			br.Msg = "无权限,请联系管理员"
 			br.IsSendEmail = false
 			return