Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

hotfix(backend): Temporarily disable library existence check for graph execution (#11318)

Zamil Majdy910fd2640d9a
diff --git a/autogpt_platform/backend/backend/executor/utils.py b/autogpt_platform/backend/backend/executor/utils.py
index 27e695a159..ddb1baa69f 100644
--- a/autogpt_platform/backend/backend/executor/utils.py
+++ b/autogpt_platform/backend/backend/executor/utils.py
@@ -519,11 +519,15 @@ async def validate_and_construct_node_execution_input(
# raising specific exceptions for appropriate error handling
# Note: Version-agnostic check to allow execution of graphs that reference
# older versions of sub-graphs that may no longer be in the library
- await gdb.validate_graph_execution_permissions(
- graph_id=graph_id,
- user_id=user_id,
- # graph_version omitted for version-agnostic permission check
- )
+ # NOTE:
+ # this is currently disabled because add_store_agent_to_library
+ # does not add subagents to the user library
+
+ # await gdb.validate_graph_execution_permissions(
+ # graph_id=graph_id,
+ # user_id=user_id,
+ # # graph_version omitted for version-agnostic permission check
+ # )
nodes_input_masks = _merge_nodes_input_masks(
(