1
0
mirror of https://github.com/minio/minio.git synced 2025-03-13 13:02:57 -04:00

Fix group add/remove membership bug ()

This commit is contained in:
Aditya Manthramurthy 2020-01-21 19:00:41 -08:00 committed by Harshavardhana
parent c7178d2066
commit 55063906b5

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