Browse Source

fix: 指标无权限

hsun 6 months ago
parent
commit
e95ecd8e17
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/data_manage/edb_info.go

+ 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