if not challenge.allow_participants_resubmissions and not is_user_a_host_of_challenge(request.user, challenge.pk):
        response_data = {
            "error": "Only challenge hosts are allowed to resume a submission"
        }
        return Response(response_data, status=status.HTTP_403_FORBIDDEN)