Skip to content

Commit 3b29979

Browse files
authored
Merge pull request #162 from ImMin5/master
Modify user_projects check logic with wildcard
2 parents bcb6e9d + 23014be commit 3b29979

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spaceone/core/handler/authorization_handler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,8 @@ def _check_permissions(user_permissions: list, permission: str):
6565

6666
@staticmethod
6767
def _check_user_projects(user_projects: list, request_project_id: str) -> None:
68+
if request_project_id == "*":
69+
return
70+
6871
if request_project_id not in user_projects:
6972
raise ERROR_PERMISSION_DENIED()

0 commit comments

Comments
 (0)