Skip to content

Commit 03399f4

Browse files
authored
Merge pull request cloudflare#305 from cloudflare/revert-304-fix/owner-only-preview
Revert "[FIX] only app owner should be able to deploy preview"
2 parents eb660f3 + 0bfe1a4 commit 03399f4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

worker/api/routes/codegenRoutes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ export function setupCodegenRoutes(app: Hono<AppEnv>): void {
2727
// Only the app owner should be able to connect for editing purposes
2828
app.get('/api/agent/:agentId/connect', setAuthLevel(AuthConfig.ownerOnly), adaptController(CodingAgentController, CodingAgentController.connectToExistingAgent));
2929

30-
// Deploy preview - OWNER ONLY
31-
// Only the app owner should be able to deploy previews
32-
app.get('/api/agent/:agentId/preview', setAuthLevel(AuthConfig.ownerOnly), adaptController(CodingAgentController, CodingAgentController.deployPreview));
30+
app.get('/api/agent/:agentId/preview', setAuthLevel(AuthConfig.authenticated), adaptController(CodingAgentController, CodingAgentController.deployPreview));
3331
}

0 commit comments

Comments
 (0)