From b622d9116d10eeb6bee3036bd3cd4401cce45331 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Thu, 26 Dec 2024 22:00:22 +0900 Subject: [PATCH] refactor: change public dashboard permissions Signed-off-by: Jongmin Kim --- src/spaceone/dashboard/service/public_dashboard_service.py | 2 +- src/spaceone/dashboard/service/public_folder_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/dashboard/service/public_dashboard_service.py b/src/spaceone/dashboard/service/public_dashboard_service.py index 9ee1bbe..d925064 100644 --- a/src/spaceone/dashboard/service/public_dashboard_service.py +++ b/src/spaceone/dashboard/service/public_dashboard_service.py @@ -334,9 +334,9 @@ def share_dashboard(self, params_dict: dict) -> dict: if pub_dashboard_vo.resource_group == "DOMAIN": updated_params["workspace_id"] = "*" + updated_params["project_id"] = "*" if scope == "PROJECT": updated_params["scope"] = "PROJECT" - updated_params["project_id"] = "*" else: updated_params["scope"] = "WORKSPACE" elif pub_dashboard_vo.resource_group == "WORKSPACE": diff --git a/src/spaceone/dashboard/service/public_folder_service.py b/src/spaceone/dashboard/service/public_folder_service.py index 6180773..287e343 100644 --- a/src/spaceone/dashboard/service/public_folder_service.py +++ b/src/spaceone/dashboard/service/public_folder_service.py @@ -148,9 +148,9 @@ def share( if pub_folder_vo.resource_group == "DOMAIN": updated_params["workspace_id"] = "*" + updated_params["project_id"] = "*" if params.scope == "PROJECT": updated_params["scope"] = "PROJECT" - updated_params["project_id"] = "*" else: updated_params["scope"] = "WORKSPACE" elif pub_folder_vo.resource_group == "WORKSPACE":