Skip to content

Commit

Permalink
Merge pull request #141 from whdalsrnt/master
Browse files Browse the repository at this point in the history
refactor: change public dashboard permissions
  • Loading branch information
whdalsrnt authored Dec 26, 2024
2 parents 4d56ac2 + b622d91 commit 45bff6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spaceone/dashboard/service/public_dashboard_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion src/spaceone/dashboard/service/public_folder_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 45bff6c

Please sign in to comment.