def filter_by_author(contributions, authors):
    """
    Filter the given contributions by the given authors.
    """
    filtered_contributions = []
    for contribution in contributions:
        if contribution['author'] in authors:
            filtered_contributions.append(contribution)
    return filtered_contributions
