Skip to content

Commit

Permalink
fix: Fix deletion issue for role_binding with DOMAIN_ADMIN role_type
Browse files Browse the repository at this point in the history
Signed-off-by: lhhyung <lhhyung511@megazone.com>
  • Loading branch information
lhhyung committed Jan 7, 2025
1 parent a389f93 commit fe57653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/identity/service/role_binding_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def delete(self, params: RoleBindingDeleteRequest) -> None:

self.user_mgr.update_user_by_vo(user_role_info, user_vo)

if rb_vo.workspace_id:
if rb_vo.workspace_id and not rb_vo.resource_group == "DOMAIN":
self.update_workspace_user_count(rb_vo.domain_id, rb_vo.workspace_id)

self.role_binding_manager.delete_role_binding_by_vo(rb_vo)
Expand Down

0 comments on commit fe57653

Please sign in to comment.