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

Commit

Permalink
Merge pull request #483 from appirio-tech/kohata-fix-country-check-ma…
Browse files Browse the repository at this point in the history
…ster2

Fix for the issue: Do not allow a member to register for challenge if country is not set (master)#3
  • Loading branch information
ykohata authored Aug 8, 2016
2 parents 7dc3b08 + e9bdea1 commit 6f317a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions queries/challenge_registration_validations
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ left outer join (
-- Check coder's country
left outer join (
informixoltp:coder coder join informixoltp:country country
on coder.comp_country_code=country.country_code
and country.country_name in ( "Iran", "North Korea", "Cuba", "Sudan", "Syria" )
on (
coder.comp_country_code=country.country_code OR
coder.home_country_code=country.country_code
) and country.country_name in ( "Iran", "North Korea", "Cuba", "Sudan", "Syria" )
) on coder.coder_id = @userId@
-- Get coder to check comp_country_code
left outer join informixoltp:coder coder2 on coder2.coder_id = @userId@
Expand Down

0 comments on commit 6f317a6

Please sign in to comment.