mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
Update on-disk storage format for users system (#7949)
- Policy mapping is now at `config/iam/policydb/users/myuser1.json` and includes version. - User identity file is now versioned. - Migrate old data to the new format.
This commit is contained in:
committed by
kannappanr
parent
55d4eee6f1
commit
7bdaf9bc50
@@ -1253,7 +1253,7 @@ func (a adminAPIHandlers) SetUserPolicy(w http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
if err := globalIAMSys.SetUserPolicy(accessKey, policyName); err != nil {
|
||||
if err := globalIAMSys.PolicyDBSet(accessKey, policyName); err != nil {
|
||||
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user