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

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

No files matched your search

+1 -1
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