Skip to content

Commit

Permalink
fix: ignore is_initiator for history and urls
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfrasco committed May 9, 2023
1 parent c705d00 commit e86d293
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/backend/apis/bwwc.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def get_submission_urls(req: HttpRequest) -> HttpResponse:
if not auth.is_valid_token(auth_token):
return HttpResponse("Unauthorized", status=401)

if not engine.is_initiator(session_id, auth_token):
return HttpResponse("Unauthorized", status=401)
# if not engine.is_initiator(session_id, auth_token):
# return HttpResponse("Unauthorized", status=401)

if not auth_token or not session_id or not participant_count:
return HttpResponseBadRequest("Invalid request body")
Expand Down Expand Up @@ -225,8 +225,8 @@ def get_submission_history(req: HttpRequest) -> HttpResponse:
if not auth.is_valid_token(auth_token):
return HttpResponse("Unauthorized", status=401)

if not engine.is_initiator(session_id, auth_token):
return HttpResponseBadRequest("Invalid request body")
# if not engine.is_initiator(session_id, auth_token):
# return HttpResponseBadRequest("Invalid request body")

if not engine.session_exists(session_id):
return HttpResponseBadRequest("Invalid session ID")
Expand Down

0 comments on commit e86d293

Please sign in to comment.