From 42959a7ca11598fbe1fe167cd5f3b7f40b52f190 Mon Sep 17 00:00:00 2001 From: Youngjin Jo Date: Fri, 10 May 2024 16:23:39 +0900 Subject: [PATCH] fix: add DOMAIN_ADMIN role type to Agent get, list Signed-off-by: Youngjin Jo --- src/spaceone/identity/service/agent_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/identity/service/agent_service.py b/src/spaceone/identity/service/agent_service.py index fd61331f..b45a8154 100644 --- a/src/spaceone/identity/service/agent_service.py +++ b/src/spaceone/identity/service/agent_service.py @@ -300,7 +300,7 @@ def delete(self, params: AgentDeleteRequest) -> None: @transaction( permission="identity:Agent.read", - role_types=["WORKSPACE_OWNER", "WORKSPACE_MEMBER"], + role_types=["DOMAIN_ADMIN", "WORKSPACE_OWNER", "WORKSPACE_MEMBER"], ) @convert_model def get(self, params: AgentGetRequest) -> Union[AgentResponse, dict]: @@ -335,7 +335,7 @@ def get(self, params: AgentGetRequest) -> Union[AgentResponse, dict]: @transaction( permission="identity:Agent.read", - role_types=["WORKSPACE_OWNER", "WORKSPACE_MEMBER"], + role_types=["DOMAIN_ADMIN", "WORKSPACE_OWNER", "WORKSPACE_MEMBER"], ) @append_query_filter( [