mirror of
https://github.com/minio/minio.git
synced 2025-04-20 10:37:31 -04:00
Add DeleteUser() to generate events in etcd (#7804)
Fixes a regression introduced in 6d89435356df465bef282ba9a7750da53d89605c Fixes #7797
This commit is contained in:
parent
299ef9b188
commit
cd7d5b59e5
@ -940,6 +940,12 @@ func (a adminAPIHandlers) RemoveUser(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
accessKey := vars["accessKey"]
|
accessKey := vars["accessKey"]
|
||||||
|
|
||||||
|
if err := globalIAMSys.DeleteUser(accessKey); err != nil {
|
||||||
|
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Notify all other MinIO peers to delete user.
|
// Notify all other MinIO peers to delete user.
|
||||||
for _, nerr := range globalNotificationSys.DeleteUser(accessKey) {
|
for _, nerr := range globalNotificationSys.DeleteUser(accessKey) {
|
||||||
if nerr.Err != nil {
|
if nerr.Err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user