mirror of
https://github.com/minio/minio.git
synced 2025-02-27 13:29:15 -05:00
fix: if targetUser empty use parentUser for serviceAccounts (#12275)
This commit is contained in:
parent
56d4d7b8b1
commit
fe21aa356c
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user