mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
fix: if targetUser empty use parentUser for serviceAccounts (#12275)
This commit is contained in:
@@ -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)
|
errors.New("service accounts cannot be generated for temporary credentials without parent")), r.URL)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if targetUser == "" {
|
||||||
|
targetUser = cred.ParentUser
|
||||||
|
}
|
||||||
}
|
}
|
||||||
targetGroups = cred.Groups
|
targetGroups = cred.Groups
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user