Skip to content

Commit

Permalink
feat: some side effects
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jul 31, 2023
1 parent d325d98 commit 32b28ae
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,15 @@ export class WorkspaceSavedObjectsClientWrapper {
type: WORKSPACE_TYPE,
id: workspaceId,
},
this.formatPermissionModeToStringArray(PermissionMode.Read)
[PermissionMode.Read]
)
);
} else {
options.workspaces = [
'public',
...(await this.permissionControl.getPermittedWorkspaceIds(
wrapperOptions.request,
this.formatPermissionModeToStringArray(PermissionMode.Read)
)),
...(await this.permissionControl.getPermittedWorkspaceIds(wrapperOptions.request, [
PermissionMode.Read,
])),
];
}
return await wrapperOptions.client.find<T>(options);
Expand Down

0 comments on commit 32b28ae

Please sign in to comment.