Allow setting non-existent policy on a user/group (#13898)

This commit is contained in:
Aditya Manthramurthy
2021-12-13 15:55:52 -08:00
committed by GitHub
parent 8144a125ce
commit de400f3473
2 changed files with 7 additions and 1 deletions

View File

@@ -1191,7 +1191,7 @@ func (sys *IAMSys) PolicyDBSet(ctx context.Context, name, policy string, isGroup
err := sys.store.PolicyDBSet(ctx, name, policy, userType, isGroup)
if err != nil {
return nil
return err
}
// Notify all other MinIO peers to reload policy