Use real name instead of alias to fetch policies

This commit is contained in:
Ingo Oppermann
2025-04-09 14:04:09 +02:00
parent e359420838
commit 13311e6d90
2 changed files with 2 additions and 2 deletions

View File

@@ -339,7 +339,7 @@ func (h *ClusterHandler) IAMIdentityGet(c echo.Context) error {
}
}
iampolicies := h.iam.ListPolicies(name, "", nil, "", nil)
iampolicies := h.iam.ListPolicies(iamuser.Name, "", nil, "", nil)
user := api.IAMUser{}
user.Marshal(iamuser, iampolicies)

View File

@@ -369,7 +369,7 @@ func (h *IAMHandler) GetIdentity(c echo.Context) error {
}
}
iampolicies := h.iam.ListPolicies(name, "", nil, "", nil)
iampolicies := h.iam.ListPolicies(iamuser.Name, "", nil, "", nil)
user := api.IAMUser{}
user.Marshal(iamuser, iampolicies)