From 32b28ae70658a47b1169460c77e181eae955dfcc Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Mon, 31 Jul 2023 17:58:59 +0800 Subject: [PATCH] feat: some side effects Signed-off-by: SuZhou-Joe --- .../workspace_saved_objects_client_wrapper.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts b/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts index 486e264466ba..0e4452dc23e3 100644 --- a/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts +++ b/src/core/server/workspaces/saved_objects/workspace_saved_objects_client_wrapper.ts @@ -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(options);