diff --git a/packages/nocodb-nest/src/modules/plugins/plugins.controller.ts b/packages/nocodb-nest/src/modules/plugins/plugins.controller.ts index 9063498320..571ccd8ff4 100644 --- a/packages/nocodb-nest/src/modules/plugins/plugins.controller.ts +++ b/packages/nocodb-nest/src/modules/plugins/plugins.controller.ts @@ -1,4 +1,14 @@ -import { Body, Controller, Get, HttpCode, Param, Patch, Post } from '@nestjs/common' +import { + Body, + Controller, + Get, + HttpCode, + Param, + Patch, + Post, + UseGuards, +} from '@nestjs/common'; +import { GlobalGuard } from '../../guards/global/global.guard'; import { PagedResponseImpl } from '../../helpers/PagedResponse'; import { Acl } from '../../middlewares/extract-project-id/extract-project-id.middleware'; import { PluginsService } from './plugins.service'; @@ -11,6 +21,7 @@ const blockInCloudMw = (_req, res, next) => { }; @Controller() +@UseGuards(GlobalGuard) export class PluginsController { constructor(private readonly pluginsService: PluginsService) {}