mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: if targetUser empty use parentUser for serviceAccounts (#12275)
This commit is contained in:
1 parent
56d4d7b8b1
commit
fe21aa356c
1 file changed
+3
@@ -530,6 +530,9 @@ func (a adminAPIHandlers) AddServiceAccount(w http.ResponseWriter, r *http.Reque
|
||||
errors.New("service accounts cannot be generated for temporary credentials without parent")), r.URL)
|
||||
return
|
||||
}
|
||||
if targetUser == "" {
|
||||
targetUser = cred.ParentUser
|
||||
}
|
||||
}
|
||||
targetGroups = cred.Groups
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user