Skip to content

Commit

Permalink
refactor: change public folder permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Jongmin Kim <whdalsrnt@megazone.com>
  • Loading branch information
whdalsrnt committed Dec 27, 2024
1 parent 45bff6c commit 663194c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceone/dashboard/service/public_folder_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 663194c

Please sign in to comment.