From 663194ccea8072e1a483a2353cc4888863c1b969 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Fri, 27 Dec 2024 11:04:40 +0900 Subject: [PATCH] refactor: change public folder permissions Signed-off-by: Jongmin Kim --- src/spaceone/dashboard/service/public_folder_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/dashboard/service/public_folder_service.py b/src/spaceone/dashboard/service/public_folder_service.py index 287e343..484b8e2 100644 --- a/src/spaceone/dashboard/service/public_folder_service.py +++ b/src/spaceone/dashboard/service/public_folder_service.py @@ -163,7 +163,7 @@ def share( updated_params, pub_folder_vo ) - if pub_folder_vo.resource_group in ["DOMAIN", "WORKSPACE"]: + if pub_folder_vo.resource_group == "DOMAIN": pub_dashboard_svc = PublicDashboardService() pub_dashboard_mgr = PublicDashboardManager() pub_dashboard_vos = pub_dashboard_mgr.filter_public_dashboards( @@ -231,7 +231,7 @@ def unshare( updated_params, pub_folder_vo ) - if pub_folder_vo.resource_group in ["DOMAIN", "WORKSPACE"]: + if pub_folder_vo.resource_group == "DOMAIN": pub_dashboard_svc = PublicDashboardService() pub_dashboard_mgr = PublicDashboardManager() pub_dashboard_vos = pub_dashboard_mgr.filter_public_dashboards(