mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Add DeleteUser() to generate events in etcd (#7804)
Fixes a regression introduced in 6d89435356
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)
|
||||
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.
|
||||
for _, nerr := range globalNotificationSys.DeleteUser(accessKey) {
|
||||
if nerr.Err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user