mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
return error if policy changes on disabled groups (#16766)
This commit is contained in:
1 parent
72e5212842
commit
0a17acdb34
5 files changed
+147
-139
No files matched your search
+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