mirror of
https://github.com/minio/minio.git
synced 2026-02-11 13:20:16 -05:00
fix: site-replication will reset group status when add user (#19594)
This commit is contained in:
@@ -1325,7 +1325,7 @@ func (c *SiteReplicationSys) PeerGroupInfoChangeHandler(ctx context.Context, cha
|
||||
} else {
|
||||
_, err = globalIAMSys.AddUsersToGroup(ctx, updReq.Group, updReq.Members)
|
||||
}
|
||||
if err == nil && updReq.Status != madmin.GroupEnabled {
|
||||
if err == nil && updReq.Status != "" {
|
||||
_, err = globalIAMSys.SetGroupStatus(ctx, updReq.Group, updReq.Status == madmin.GroupEnabled)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user