feat: API key restriction

This commit is contained in:
Philipinho
2026-03-03 16:07:08 +00:00
parent 2352f3c5d9
commit ef24b3c07d
7 changed files with 105 additions and 10 deletions
@@ -327,7 +327,8 @@ export class WorkspaceService {
if (
typeof updateWorkspaceDto.disablePublicSharing !== 'undefined' ||
typeof updateWorkspaceDto.trashRetentionDays !== 'undefined' ||
typeof updateWorkspaceDto.mcpEnabled !== 'undefined'
typeof updateWorkspaceDto.mcpEnabled !== 'undefined' ||
typeof updateWorkspaceDto.restrictApiToAdmins !== 'undefined'
) {
const ws = await this.db
.selectFrom('workspaces')