workflow run should also run permission checker with browser_session_id (#1984)

This commit is contained in:
Shuchang Zheng
2025-03-20 14:43:13 -07:00
committed by GitHub
parent d3dbdee800
commit 185464f8ec

View File

@@ -574,7 +574,10 @@ async def run_workflow(
analytics.capture("skyvern-oss-agent-workflow-execute")
context = skyvern_context.ensure_context()
request_id = context.request_id
await PermissionCheckerFactory.get_instance().check(current_org)
await PermissionCheckerFactory.get_instance().check(
current_org,
browser_session_id=workflow_request.browser_session_id,
)
if template:
if workflow_id not in await app.STORAGE.retrieve_global_workflows():