zwxi před 9 měsíci
rodič
revize
84440d90b4
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      services/company.go

+ 9 - 0
services/company.go

@@ -998,6 +998,9 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
 						button.BtnShare = true
 						button.BtnRemarkEdit = true
 						button.BtnRemarkView = true
+						if sellerId != sysUserId {
+							button.BtnModifySeller = false
+						}
 					} else if productStatus == utils.COMPANY_STATUS_TRY_OUT { //试用
 						button.BtnEdit = true
 						button.BtnDelete = true
@@ -1008,11 +1011,17 @@ func GetCompanyPermissionButton(roleTypeCode, status, itemSellerIds, itemGroupId
 						button.BtnModifySeller = true
 						button.BtnRemarkEdit = true
 						button.BtnRemarkView = true
+						if sellerId != sysUserId {
+							button.BtnModifySeller = false
+						}
 					} else if productStatus == utils.COMPANY_STATUS_FREEZE { //冻结
 						button.BtnThaw = true
 						button.BtnModifySeller = true
 						button.BtnRemarkEdit = true
 						button.BtnRemarkView = true
+						if sellerId != sysUserId {
+							button.BtnModifySeller = false
+						}
 					} else if productStatus == utils.COMPANY_STATUS_LOSE { //流失
 						button.BtnApplyReceive = true
 					} else { //永续