Skip to content

Commit 23014be

Browse files
committed
feat: modify user_projects check logic with wildcard
Signed-off-by: ImMin5 <[email protected]>
1 parent bcb6e9d commit 23014be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spaceone/core/handler/authorization_handler.py

+3
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)