Skip to content

Commit

Permalink
Merge pull request #162 from ImMin5/master
Browse files Browse the repository at this point in the history
Modify user_projects check logic with wildcard
  • Loading branch information
ImMin5 authored Jan 7, 2025
2 parents bcb6e9d + 23014be commit 3b29979
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spaceone/core/handler/authorization_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@ def _check_permissions(user_permissions: list, permission: str):

@staticmethod
def _check_user_projects(user_projects: list, request_project_id: str) -> None:
if request_project_id == "*":
return

if request_project_id not in user_projects:
raise ERROR_PERMISSION_DENIED()

0 comments on commit 3b29979

Please sign in to comment.