def METHOD_NAME(request):
    """
    When the status is submitted available actions should be:
    received (done with review and the attachments have been
    downloaded)
    """
    status_dict = {s.status: s for s in DocumentActions.__statuses}
    available_statuses = []
    if request.user.has_perm('DOCUMENTS_GOVERNMENT_REVIEW'):
        available_statuses.append(
            status_dict["Received"]
        )
    if request.user.has_perm('DOCUMENTS_SUBMIT'):
        available_statuses.append(
            status_dict["Draft"]
        )
    serializer = DocumentStatusSerializer(
        available_statuses, many=True)
    return serializer.data