MCPcopy
hub / github.com/simstudioai/sim / assertWorkflowMutable

Function assertWorkflowMutable

packages/platform-authz/src/workflow.ts:175–184  ·  view source on GitHub ↗
(workflowId: string)

Source from the content-addressed store, hash-verified

173}
174
175export async function assertWorkflowMutable(workflowId: string): Promise<void> {
176 const status = await getWorkflowLockStatus(workflowId)
177 if (status.locked) {
178 throw new WorkflowLockedError(
179 status.lockedBy === 'folder'
180 ? 'Workflow is locked by its containing folder'
181 : 'Workflow is locked'
182 )
183 }
184}
185
186export async function assertFolderMutable(folderId: string | null): Promise<void> {
187 const status = await getFolderLockStatus(folderId)

Callers 15

performRevertToVersionFunction · 0.90
executeRenameWorkflowFunction · 0.90
executeMoveWorkflowFunction · 0.90
executeUpdateWorkflowFunction · 0.90
executeSetBlockEnabledFunction · 0.90
executeDeleteWorkflowFunction · 0.90
executeFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

getWorkflowLockStatusFunction · 0.85

Tested by

no test coverage detected