Skip to content

Commit 8b14452

Browse files
authored
Merge pull request #1483 from rocket-admin/backend_aws_bedrock
add ConnectionEditGuard to requestAISettingsAndWidgetsCreation endpoint
2 parents d9a5f93 + 71e0d73 commit 8b14452

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/entities/ai/user-ai-requests-v2.controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { SentryInterceptor } from '../../interceptors/sentry.interceptor.js';
2424
import { IAISettingsAndWidgetsCreation, IRequestInfoFromTableV2 } from './ai-use-cases.interface.js';
2525
import { RequestInfoFromTableDSV2 } from './application/data-structures/request-info-from-table.ds.js';
2626
import { RequestInfoFromTableBodyDTO } from './application/dto/request-info-from-table-body.dto.js';
27+
import { ConnectionEditGuard } from '../../guards/connection-edit.guard.js';
2728

2829
@UseInterceptors(SentryInterceptor)
2930
@Controller()
@@ -80,6 +81,7 @@ export class UserAIRequestsControllerV2 {
8081
status: 200,
8182
description: 'AI settings and widgets creation job has been queued.',
8283
})
84+
@UseGuards(ConnectionEditGuard)
8385
@Get('/ai/v2/setup/:connectionId')
8486
public async requestAISettingsAndWidgetsCreation(
8587
@SlugUuid('connectionId') connectionId: string,

0 commit comments

Comments
 (0)