Skip to content

Commit bda9fc5

Browse files
committed
fix(folders): route the delete lock check through the locking capability
The DELETE handler was the one branch still testing resourceType directly after locking became a declared capability, so a future lockable resource would silently skip the mutable check on delete.
1 parent 9f37876 commit bda9fc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/api/folders/[id]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const DELETE = withRouteHandler(
166166
)
167167
}
168168

169-
if (resourceType === 'workflow') {
169+
if (folderResourceConfig(resourceType).supportsLocking) {
170170
await assertFolderMutable(id)
171171
}
172172

0 commit comments

Comments
 (0)