Skip to content

Commit

Permalink
Merge pull request #383 from yjinjo/master
Browse files Browse the repository at this point in the history
Can remove any user when user is a domain
  • Loading branch information
yjinjo authored Sep 30, 2024
2 parents 8946a23 + 9467b59 commit a883c77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spaceone/identity/service/workspace_group_user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ def remove(
self.workspace_group_mgr.check_user_ids_exist_in_workspace_group(
old_user_ids, user_ids
)

params_users_user_id = params.users[0].get("user_id")
workspace_group_vo = self.workspace_group_mgr.get_workspace_group(
params.workspace_group_id, params.domain_id, user_id=user_id
params.workspace_group_id, params.domain_id, user_id=params_users_user_id
)
if not workspace_group_vo:
_LOGGER.error(f"[remove] Workspace Group not found. ({workspace_group_id})")
ERROR_NOT_FOUND(key="workspace_group_id", value=params.workspace_group_id)
workspace_group_dict = workspace_group_vo.to_mongo().to_dict()

Expand Down

0 comments on commit a883c77

Please sign in to comment.