Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down