def check_login(session):
    """
    Function to check if the specified session has a logged in user
    :param session: current flask session
    :return: Boolean, true if session has a google_token and user_id
    """
    # Check that session has a google_token
    if session.get('google_token') and session.get('user_id'):
        return True

    return False