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

Commit 6f317a6

Browse files
authored
Merge pull request #483 from appirio-tech/kohata-fix-country-check-master2
Fix for the issue: Do not allow a member to register for challenge if country is not set (master)#3
2 parents 7dc3b08 + e9bdea1 commit 6f317a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

queries/challenge_registration_validations

+4-2
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)