From d1581e9ebab143930acf1cec404dda083fb06a9f Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Wed, 29 Oct 2025 17:36:56 +0100 Subject: [PATCH] refactor: disable permissions for code graph example --- examples/python/code_graph_example.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/python/code_graph_example.py b/examples/python/code_graph_example.py index 431069050..1b476a2c3 100644 --- a/examples/python/code_graph_example.py +++ b/examples/python/code_graph_example.py @@ -1,5 +1,7 @@ import argparse import asyncio +import os + import cognee from cognee import SearchType from cognee.shared.logging_utils import setup_logging, ERROR @@ -8,6 +10,9 @@ from cognee.api.v1.cognify.code_graph_pipeline import run_code_graph_pipeline async def main(repo_path, include_docs): + # Disable permissions feature for this example + os.environ["ENABLE_BACKEND_ACCESS_CONTROL"] = "false" + run_status = False async for run_status in run_code_graph_pipeline(repo_path, include_docs=include_docs): run_status = run_status