Skip to content

Commit

Permalink
Merge pull request #280 from yjinjo/master
Browse files Browse the repository at this point in the history
Add DOMAIN_ADMIN role type to Agent get, list
  • Loading branch information
yjinjo authored May 10, 2024
2 parents 6fe885a + 42959a7 commit f3f6bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceone/identity/service/agent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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(
[
Expand Down

0 comments on commit f3f6bb4

Please sign in to comment.