mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
update
This commit is contained in:
parent
bf4b552c3e
commit
b974dd1f73
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ import { AppDecorator } from '@modules/app/decorators/app.decorator';
|
|||
import { DataQuery } from '@entities/data_query.entity';
|
||||
import { IDataQueriesController } from './interfaces/IController';
|
||||
import { QueryAuthGuard } from './guards/query-auth.guard';
|
||||
import { RunQuerySourceGuard } from './guards/run-query.guard';
|
||||
@Controller('data-queries')
|
||||
@InitModule(MODULES.DATA_QUERY)
|
||||
export class DataQueriesController implements IDataQueriesController {
|
||||
|
|
@ -126,7 +127,7 @@ export class DataQueriesController implements IDataQueriesController {
|
|||
}
|
||||
|
||||
@InitFeature(FEATURE_KEY.RUN_VIEWER)
|
||||
@UseGuards(QueryAuthGuard)
|
||||
@UseGuards(QueryAuthGuard, RunQuerySourceGuard)
|
||||
@Post(':id/run')
|
||||
async runQuery(
|
||||
@User() user: UserEntity,
|
||||
|
|
|
|||
Loading…
Reference in a new issue