Skip to content

Commit

Permalink
fixed minor bug in completing transcription task
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar committed Sep 24, 2024
1 parent db894ff commit ea82c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/transcript/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@ def save_transcription(request):
{"message": "Invalid Transcript."}, status=status.HTTP_400_BAD_REQUEST
)
# Check if the transcript has a user
if task.user == request.user:
if task.user != request.user:
return Response(
{"message": "You are not allowed to update this transcript."},
status=status.HTTP_400_BAD_REQUEST,
Expand Down

0 comments on commit ea82c61

Please sign in to comment.