def is_attendee_or_speaker(user, presentation):
    """
    Return True if the user is either a speaker or atendee.

    :param user: User instance
    :param presentation: Presentation instance
    """
    speakers = [x.user for x in presentation.speakers()]
    registrants = presentation.proposal.registrants.all()
    return user in speakers or user in registrants