diff --git a/packages/core/package.json b/packages/core/package.json index a333fd4c..eb4bd716 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@smythos/sre", - "version": "1.5.23", + "version": "1.5.24", "description": "Smyth Runtime Environment", "author": "Alaa-eddine KADDOURI", "license": "MIT", diff --git a/packages/core/src/subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class.ts b/packages/core/src/subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class.ts index a1b9ce65..1a214f76 100644 --- a/packages/core/src/subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class.ts +++ b/packages/core/src/subsystems/AgentManager/Component.service/connectors/LocalComponentConnector.class.ts @@ -47,12 +47,13 @@ export class LocalComponentConnector extends ComponentConnector { public async getResourceACL(resourceId: string, candidate: IAccessCandidate) { const accountConnector = ConnectorService.getAccountConnector(); - const teamId = await accountConnector.getCandidateTeam(candidate); + //const teamId = await accountConnector.getCandidateTeam(candidate); const acl = new ACL(); + acl.addAccess(candidate.role, candidate.id, TAccessLevel.Read); //Grant read access by default - acl.addAccess(TAccessRole.Team, teamId, TAccessLevel.Read).addAccess(candidate.role, candidate.id, TAccessLevel.Read); + //acl.addAccess(TAccessRole.Team, teamId, TAccessLevel.Read).addAccess(candidate.role, candidate.id, TAccessLevel.Read); return acl; }