mirror of https://github.com/minio/minio.git
Fix group add/remove membership bug (#8877)
This commit is contained in:
parent
c7178d2066
commit
55063906b5
|
@ -1449,9 +1449,6 @@ func (sys *IAMSys) updateGroupMembershipsMap(group string, gi *GroupInfo) {
|
||||||
// removeGroupFromMembershipsMap - removes the group from every member
|
// removeGroupFromMembershipsMap - removes the group from every member
|
||||||
// in the cache. IMPORTANT: Assumes sys.Lock() is held by caller.
|
// in the cache. IMPORTANT: Assumes sys.Lock() is held by caller.
|
||||||
func (sys *IAMSys) removeGroupFromMembershipsMap(group string) {
|
func (sys *IAMSys) removeGroupFromMembershipsMap(group string) {
|
||||||
if _, ok := sys.iamUserGroupMemberships[group]; !ok {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
for member, groups := range sys.iamUserGroupMemberships {
|
for member, groups := range sys.iamUserGroupMemberships {
|
||||||
if !groups.Contains(group) {
|
if !groups.Contains(group) {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue