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