Fix group add/remove membership bug (#8877)

This commit is contained in:
Aditya Manthramurthy 2020-01-21 19:00:41 -08:00 committed by Harshavardhana
parent c7178d2066
commit 55063906b5
1 changed files with 0 additions and 3 deletions

View File

@ -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