fix: a regression in IAM policy reload routine() (#19421)

all policy reloading is broken since last release since

48deccdc40

fixes #19417
This commit is contained in:
Harshavardhana
2024-04-05 14:26:41 -07:00
committed by GitHub
parent a207bd6790
commit 91f91d8f47
3 changed files with 35 additions and 5 deletions

View File

@@ -1918,7 +1918,7 @@ func (sys *IAMSys) IsAllowedSTS(args policy.Args, parentUser string) bool {
default:
// Otherwise, inherit parent user's policy
var err error
policies, err = sys.store.PolicyDBGet(parentUser, args.Groups...)
policies, err = sys.PolicyDBGet(parentUser, args.Groups...)
if err != nil {
iamLogIf(GlobalContext, fmt.Errorf("error fetching policies on %s: %v", parentUser, err))
return false