Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cla-backend-go/v2/sign/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func Configure(api *operations.EasyclaAPI, service Service, userService users.Se
if strings.Contains(err.Error(), "internal server error") {
return sign.NewRequestCorporateSignatureInternalServerError().WithPayload(errorResponse(reqID, err))
}
if strings.Contains(err.Error(), "is sanctioned") {
desc := "Were sorry, but you are currently unable to sign the Corporate Contributor License Agreement (CCLA). If you believe this may be an error, please reach out to support"
if strings.Contains(err.Error(), "is sanctioned") || strings.Contains(err.Error(), "requires further review for trade compliance") {
desc := "We're sorry, but this organization requires additional trade compliance review, so the Contributor License Agreement (CLA) cannot be completed at this time. If you believe this is an error, please contact EasyCLA Support via the chat widget."
return sign.NewRequestCorporateSignatureForbidden().WithPayload(errorResponseWithDesc(reqID, err, desc))
Comment thread
lukaszgryglicki marked this conversation as resolved.
}
if err == projects_cla_groups.ErrProjectNotAssociatedWithClaGroup {
Expand Down
4 changes: 2 additions & 2 deletions cla-backend-legacy/internal/api/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8897,8 +8897,8 @@ func (h *Handlers) employeeSignaturePrecheck(ctx context.Context, projectID, com
if blocked {
fn := "employeeSignaturePrecheck"
sanctioned := map[string]any{
"sanctioned": fmt.Sprintf("%s - user %s, company %s is sanctioned", fn, userID, companyID),
"description": "Were sorry, but you are currently unable to sign the Employee Contributor License Agreement (ECLA). If you believe this may be an error, please reach out to support",
"sanctioned": fmt.Sprintf("%s - user %s, company %s requires additional trade compliance review", fn, userID, companyID),
"description": "We're sorry, but this organization requires additional trade compliance review, so the Contributor License Agreement (CLA) cannot be completed at this time. If you believe this is an error, please contact EasyCLA Support via the chat widget.",
"user_id": userID,
"company_id": companyID,
}
Expand Down
Loading