def user_whitelisted(user, users_whitelist='users_whitelist'):
    """Check if user is authorized to access."""
    with open(users_whitelist, 'r') as f:
        white_list = f.read().splitlines()

    return user.email in white_list