Skip to content

Commit

Permalink
fix public hunt responses
Browse files Browse the repository at this point in the history
  • Loading branch information
dlareau committed Feb 10, 2021
1 parent 579a3ca commit 85732d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions huntserver/hunt_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ def puzzle_view(request, puzzle_id):
# Dealing with answer submissions, proper procedure is to create a submission
# object and then rely on Submission.respond for automatic responses.
if request.method == 'POST':
if(team is None):
if(puzzle.hunt.is_public):
team = puzzle.hunt.dummy_team
else:
if(puzzle.hunt.is_public):
team = puzzle.hunt.dummy_team
else:
if(team is None):
# If the hunt isn't public and you aren't signed in, please stop...
return HttpResponse('fail')

Expand Down

0 comments on commit 85732d6

Please sign in to comment.