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

Function assertCanRollback

apps/sim/lib/workspaces/fork/lineage/authz.ts:150–155  ·  view source on GitHub ↗
(
  targetWorkspaceId: string,
  userId: string
)

Source from the content-addressed store, hash-verified

148
149/** Authorize rolling back the last promote into `targetWorkspaceId` (admin only). */
150export async function assertCanRollback(
151 targetWorkspaceId: string,
152 userId: string
153): Promise<WorkspaceWithOwner> {
154 return assertWorkspaceAdminAccess(targetWorkspaceId, userId)
155}

Callers 1

route.tsFile · 0.90

Calls 1

Tested by

no test coverage detected