Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

Updated the permission check condition (#442)

Rahul Johny46961442d029
diff --git a/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py b/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py
index c279bd8c4..caa4e377c 100644
--- a/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py
+++ b/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py
@@ -159,21 +159,21 @@ class PromptStudioHelper:
).exists()
)
is_vector_store_owned = (
- profile_manager.llm.shared_to_org
+ profile_manager.vector_store.shared_to_org
or profile_manager.vector_store.created_by == profile_manager_owner
or profile_manager.vector_store.shared_users.filter(
pk=profile_manager_owner.pk
).exists()
)
is_embedding_model_owned = (
- profile_manager.llm.shared_to_org
+ profile_manager.embedding_model.shared_to_org
or profile_manager.embedding_model.created_by == profile_manager_owner
or profile_manager.embedding_model.shared_users.filter(
pk=profile_manager_owner.pk
).exists()
)
is_x2text_owned = (
- profile_manager.llm.shared_to_org
+ profile_manager.x2text.shared_to_org
or profile_manager.x2text.created_by == profile_manager_owner
or profile_manager.x2text.shared_users.filter(
pk=profile_manager_owner.pk