forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workspace attribute check and refactor saved object acl check (#93)
* feat: add permission check for saved objects Signed-off-by: tygao <tygao@amazon.com> * feat: add attribute check Signed-off-by: tygao <tygao@amazon.com> * merge workspace error fix Signed-off-by: tygao <tygao@amazon.com> * update addToWorkspacesWithPermissionControl Signed-off-by: tygao <tygao@amazon.com> * feat: add workspace num check Signed-off-by: tygao <tygao@amazon.com> * chore: pass right access Signed-off-by: tygao <tygao@amazon.com> * chore: merge validateSingleObjectPermissions Signed-off-by: tygao <tygao@amazon.com> * chore: merge validateSingleObjectPermissions Signed-off-by: tygao <tygao@amazon.com> * chore: update bulkUpdate and update logic Signed-off-by: tygao <tygao@amazon.com> * feat: remove attribute check Signed-off-by: tygao <tygao@amazon.com> * feat: pass validate for config object Signed-off-by: tygao <tygao@amazon.com> * Update src/plugins/workspace/server/saved_objects/workspace_saved_objects_client_wrapper.ts Co-authored-by: Yulong Ruan <ruanyu1@gmail.com> * Update src/plugins/workspace/server/saved_objects/workspace_saved_objects_client_wrapper.ts Co-authored-by: Yulong Ruan <ruanyu1@gmail.com> * update Signed-off-by: tygao <tygao@amazon.com> * chore: update update and bulkUpdate to reduce calling get function Signed-off-by: tygao <tygao@amazon.com> * fix: change validateUpdateWithWorkspacePermission from validateMulti to validateAtLeastOnePermittedWorkspaces Signed-off-by: tygao <tygao@amazon.com> --------- Signed-off-by: tygao <tygao@amazon.com> Co-authored-by: Yulong Ruan <ruanyu1@gmail.com>
- Loading branch information
Showing
2 changed files
with
161 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters