diff --git a/packages/services/agent-service/src/interfaces/rest/controllers/agent-instance.controller.ts b/packages/services/agent-service/src/interfaces/rest/controllers/agent-instance.controller.ts index 96f3e44..5615005 100644 --- a/packages/services/agent-service/src/interfaces/rest/controllers/agent-instance.controller.ts +++ b/packages/services/agent-service/src/interfaces/rest/controllers/agent-instance.controller.ts @@ -34,8 +34,8 @@ export class AgentInstanceController { const jwt = this.decodeJwt(req.headers?.['authorization'] as string | undefined); const userId = jwt?.sub; const roles: string[] = jwt?.roles ?? []; - // Admins and operators see all instances; regular users only see their own - if (!userId || roles.includes('admin') || roles.includes('operator')) { + // Admins see all instances; regular users only see their own + if (!userId || roles.includes('admin')) { return this.instanceRepo.findAll(); } const instances = await this.instanceRepo.findByUserId(userId);