allow delete of a group with no policy set (#9288)

master
César Nieto 5 years ago committed by GitHub
parent 2642e12d14
commit 3ea1be3c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/iam.go

@ -1048,7 +1048,7 @@ func (sys *IAMSys) RemoveUsersFromGroup(group string, members []string) error {
// mapped policy.
err := sys.store.deleteMappedPolicy(group, regularUser, true)
// No-mapped-policy case is ignored.
if err != nil && err != errConfigNotFound {
if err != nil && err != errNoSuchPolicy {
return err
}
err = sys.store.deleteGroupInfo(group)

Loading…
Cancel
Save