Skip to content

Commit

Permalink
feat: add annontation to skip permission check
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <wonglam@amazon.com>
  • Loading branch information
wanglam committed Sep 18, 2023
1 parent 4993410 commit 0ee1b9f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export class WorkspaceSavedObjectsClientWrapper {
validateAllWorkspaces = true
) {
const { id, type } = savedObject;

// Advanced settings have no permissions and workspaces, so we need to skip it.
if (!savedObject.workspaces && !savedObject.permissions) {
return true;
}
Expand Down

0 comments on commit 0ee1b9f

Please sign in to comment.