Skip to content

Commit

Permalink
fix: use role argument to get app actions (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
narasux authored Sep 25, 2024
1 parent 6430349 commit dbc429d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/paasng/paasng/infras/iam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_paas_authorization_scopes(
"""
scopes = {
"system": settings.IAM_PAAS_V3_SYSTEM_ID,
"actions": [{"id": action} for action in get_app_actions_by_role(ApplicationRole.ADMINISTRATOR)],
"actions": [{"id": action} for action in get_app_actions_by_role(role)],
"resources": [
{
"system": settings.IAM_PAAS_V3_SYSTEM_ID,
Expand Down

0 comments on commit dbc429d

Please sign in to comment.