Skip to content

Commit

Permalink
feat: add public
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Aug 4, 2023
1 parent 98e674c commit 99356f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ export class WorkspaceSavedObjectsClientWrapper {
);
if (options.workspaces) {
const isEveryWorkspaceIsPermitted = options.workspaces.every((item) =>
permittedWorkspaceIds?.includes(item)
// TODO modify this line to use permittedWorkspaceIds if public workspace is also a workspace
['public', ...(permittedWorkspaceIds || [])]?.includes(item)
);
if (!isEveryWorkspaceIsPermitted) {
throw generateWorkspacePermissionError();
Expand Down

0 comments on commit 99356f4

Please sign in to comment.