Fix group add/remove membership bug (#8877)

master
Aditya Manthramurthy 5 years ago committed by Harshavardhana
parent c7178d2066
commit 55063906b5
  1. 3
      cmd/iam.go

@ -1449,9 +1449,6 @@ func (sys *IAMSys) updateGroupMembershipsMap(group string, gi *GroupInfo) {
// removeGroupFromMembershipsMap - removes the group from every member
// in the cache. IMPORTANT: Assumes sys.Lock() is held by caller.
func (sys *IAMSys) removeGroupFromMembershipsMap(group string) {
if _, ok := sys.iamUserGroupMemberships[group]; !ok {
return
}
for member, groups := range sys.iamUserGroupMemberships {
if !groups.Contains(group) {
continue

Loading…
Cancel
Save