Skip to content

Commit

Permalink
Merge pull request #151 from ImMin5/master
Browse files Browse the repository at this point in the history
Add accessible role_type for WorkspaceUser get, list api
  • Loading branch information
ImMin5 authored Dec 30, 2023
2 parents 38bf7a1 + fddc9fd commit 84a507e
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/spaceone/identity/service/workspace_user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def find(

@transaction(
permission="identity:WorkspaceUser.read",
role_types=["WORKSPACE_OWNER", "WORKSPACE_MEMBER"],
role_types=["DOMAIN_ADMIN", "WORKSPACE_OWNER", "WORKSPACE_MEMBER"],
)
@convert_model
def get(
Expand All @@ -134,17 +134,10 @@ def get(

@transaction(
permission="identity:WorkspaceUser.read",
role_types=["WORKSPACE_OWNER", "WORKSPACE_MEMBER"],
role_types=["DOMAIN_ADMIN", "WORKSPACE_OWNER", "WORKSPACE_MEMBER"],
)
@append_query_filter(
[
"user_id",
"name",
"state",
"email",
"auth_type",
"domain_id",
]
["user_id", "name", "state", "email", "auth_type", "domain_id"]
)
@append_keyword_filter(["user_id", "name", "email"])
@convert_model
Expand Down

0 comments on commit 84a507e

Please sign in to comment.