Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 72c46ef

Browse files
authored
Merge pull request #482 from appirio-tech/kohata-fix-country-check
Fix for the issue: Do not allow a member to register for challenge if country is not set#3
2 parents ea5b9e7 + 1d06866 commit 72c46ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

queries/challenge_registration_validations

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ left outer join (
4848
-- Check coder's country
4949
left outer join (
5050
informixoltp:coder coder join informixoltp:country country
51-
on coder.comp_country_code=country.country_code
52-
and country.country_name in ( "Iran", "North Korea", "Cuba", "Sudan", "Syria" )
51+
on (
52+
coder.comp_country_code=country.country_code OR
53+
coder.home_country_code=country.country_code
54+
) and country.country_name in ( "Iran", "North Korea", "Cuba", "Sudan", "Syria" )
5355
) on coder.coder_id = @userId@
5456
-- Get coder to check comp_country_code
5557
left outer join informixoltp:coder coder2 on coder2.coder_id = @userId@

0 commit comments

Comments
 (0)