Explorar o código

Merge branch 'crm1.0' into debug

Roc %!s(int64=3) %!d(string=hai) anos
pai
achega
291dc816db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/seal/seal.go

+ 1 - 1
services/seal/seal.go

@@ -200,7 +200,7 @@ func GetOpButton(sealInfo *seal.Seal, contractApprovalInfo *contract_approval.Co
 
 	//编辑权限
 	editStatus := []string{"已驳回", "待提交", "已撤回"}
-	if opUser.RoleTypeCode == utils.ROLE_TYPE_CODE_COMPLIANCE && strings.Contains(strings.Join(editStatus, ","), sealInfo.Status) {
+	if opUser.AdminId == sealInfo.UserId && strings.Contains(strings.Join(editStatus, ","), sealInfo.Status) {
 		sealOpButton.Edit = true
 	}
 	return