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

Fix for the issue: Do not allow a member to register for challenge if country is not set (master)#3 #483

Merged
merged 1 commit into from
Aug 8, 2016
Merged
Changes from all 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
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