MCPcopy Index your code
hub / github.com/simstudioai/sim / assertFolderMutable

Function assertFolderMutable

packages/platform-authz/src/workflow.ts:186–193  ·  view source on GitHub ↗
(folderId: string | null)

Source from the content-addressed store, hash-verified

184}
185
186export async function assertFolderMutable(folderId: string | null): Promise<void> {
187 const status = await getFolderLockStatus(folderId)
188 if (status.locked) {
189 throw new FolderLockedError(
190 status.inheritedLocked ? 'Folder is locked by an ancestor folder' : 'Folder is locked'
191 )
192 }
193}
194
195export class FolderNotFoundError extends Error {
196 readonly status = 400

Callers 13

executeCreateWorkflowFunction · 0.90
executeCreateFolderFunction · 0.90
executeMoveWorkflowFunction · 0.90
executeMoveFolderFunction · 0.90
executeDeleteFolderFunction · 0.90
executeRenameFolderFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

getFolderLockStatusFunction · 0.85

Tested by

no test coverage detected