You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(workflows): enforce server-side cascade lock checks and close security gaps
- Split lock utilities into pure functions (lock.ts) and DB-backed functions (lock-db.ts)
- Add cascade lock checks to all API routes: workflow CRUD, folder CRUD, state save, reorder/move
- Add workflow lock check to Socket.IO collaborative operations
- Block drag-and-drop for locked items and into locked folders
- Fix lock bypass when isLocked is included alongside other fields in request body
- Disable duplicate action for locked workflows and folders
- Make isLocked required in WorkflowMetadata type (matches NOT NULL schema)
- Add 16 unit tests for lock utility functions
- Re-export pure functions from hooks/use-effective-lock.ts for client compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -423,7 +423,7 @@ export function WorkflowItem({
0 commit comments