Browse Source

fix: 英文权限设置

hsun 1 year ago
parent
commit
c3b56d5f06
1 changed files with 2 additions and 18 deletions
  1. 2 18
      controllers/english_report/english_auth.go

+ 2 - 18
controllers/english_report/english_auth.go

@@ -204,12 +204,6 @@ func (this *EnglishAuthController) BatchAdd() {
 		br.Ret = 408
 		return
 	}
-	if utils.BusinessCode != utils.BusinessCodeRelease {
-		br.Ret = 200
-		br.Success = true
-		br.Msg = "操作成功"
-		return
-	}
 
 	var req request.AddEnglishAuthRoleAdminReq
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
@@ -452,12 +446,7 @@ func (this *EnglishAuthController) Edit() {
 		br.Ret = 408
 		return
 	}
-	if utils.BusinessCode != utils.BusinessCodeRelease {
-		br.Ret = 200
-		br.Success = true
-		br.Msg = "操作成功"
-		return
-	}
+
 	var req request.EditEnglishAuthRoleAdminReq
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
 	if err != nil {
@@ -595,12 +584,7 @@ func (this *EnglishAuthController) Del() {
 		br.Ret = 408
 		return
 	}
-	if utils.BusinessCode != utils.BusinessCodeRelease {
-		br.Ret = 200
-		br.Success = true
-		br.Msg = "操作成功"
-		return
-	}
+
 	var req request.DelEnglishAuthRoleAdminReq
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
 	if err != nil {