Skip to content

Commit

Permalink
fix: change validateUpdateWithWorkspacePermission from validateMulti …
Browse files Browse the repository at this point in the history
…to validateAtLeastOnePermittedWorkspaces

Signed-off-by: tygao <tygao@amazon.com>
  • Loading branch information
raintygao committed Aug 23, 2023
1 parent d2abb9a commit 2398e76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class WorkspaceSavedObjectsClientWrapper {
let workspacePermitted = false;
if (objectToUpdate.workspaces && objectToUpdate.workspaces.length > 0) {
workspacePermitted =
(await this.validateMultiWorkspacesPermissions(
(await this.validateAtLeastOnePermittedWorkspaces(
objectToUpdate.workspaces,
wrapperOptions.request,
[WorkspacePermissionMode.Management, WorkspacePermissionMode.LibraryWrite]
Expand Down

0 comments on commit 2398e76

Please sign in to comment.