mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
return error if policy changes on disabled groups (#16766)
This commit is contained in:
+1
-2
@@ -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