@@ -683,6 +683,7 @@ def user_signed_project_signature(user: User, project: Project) -> bool:
683683
684684 # Check if we have an CCLA for this user
685685 company_id = user .get_user_company_id ()
686+ cla .log .debug (f"{ fn } : LG: company_id={ company_id } " )
686687
687688 ccla_pass = False
688689 if company_id is not None :
@@ -695,6 +696,7 @@ def user_signed_project_signature(user: User, project: Project) -> bool:
695696 employee_signature = user .get_latest_signature (
696697 project .get_project_id (), company_id = company_id , signature_signed = True , signature_approved = True
697698 )
699+ cla .log .debug (f"{ fn } : LG: employee_signature={ employee_signature } " )
698700
699701 if employee_signature is not None :
700702 cla .log .debug (
@@ -712,6 +714,7 @@ def user_signed_project_signature(user: User, project: Project) -> bool:
712714 f"company with id does not exist: { company_id } ."
713715 )
714716 return False
717+ cla .log .debug (f"{ fn } : LG: company={ company } " )
715718
716719 # Get CCLA signature of company to access whitelist
717720 cla .log .debug (
@@ -721,6 +724,7 @@ def user_signed_project_signature(user: User, project: Project) -> bool:
721724 signature = company .get_latest_signature (
722725 project .get_project_id (), signature_signed = True , signature_approved = True
723726 )
727+ cla .log .debug (f"{ fn } : LG: signature={ signature } " )
724728
725729 # Don't check the version for employee signatures.
726730 if signature is not None :
@@ -739,6 +743,7 @@ def user_signed_project_signature(user: User, project: Project) -> bool:
739743 # 'project requires ICLA signature as well as CCLA signature ')
740744 if user .is_approved (signature ):
741745 ccla_pass = True
746+ cla .log .debug (f"{ fn } : LG: ccla_pass={ ccla_pass } " )
742747 else :
743748 # Set user signatures approved = false due to user failing whitelist checks
744749 cla .log .debug (
0 commit comments