mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
return error if policy changes on disabled groups (#16766)
This commit is contained in:
@@ -937,8 +937,7 @@ func (store *IAMStoreSys) PolicyDBUpdate(ctx context.Context, name string, isGro
|
||||
}
|
||||
|
||||
if g.Status == statusDisabled {
|
||||
// TODO: return an error?
|
||||
return updatedAt, nil, nil
|
||||
return updatedAt, nil, errGroupDisabled
|
||||
}
|
||||
}
|
||||
mp = cache.iamGroupPolicyMap[name]
|
||||
|
||||
Reference in New Issue
Block a user