def get_attendee_role_event(attendee, event):
    """Return attendee's role in event."""
    if attendee == event.owner:
        if event.mozilla_event:
            return 'Organizer'
        else:
            return 'Mozilla\'s presence organizer'
    elif attendee.groups.filter(name='Mozillians').exists():
        return 'Mozillian attendee'
    elif attendee.groups.filter(name='Alumni').exists():
        return 'Alumni attendee'
    return 'Rep attendee'