Fix LDAP policy application on user policy (#11887)

This commit is contained in:
Aditya Manthramurthy 2021-03-24 12:29:25 -07:00 committed by GitHub
parent 749e9c5771
commit 906d68c356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1891,7 +1891,7 @@ func (sys *IAMSys) IsAllowedLDAPSTS(args iampolicy.Args, parentUser string) bool
} }
// Check policy for this LDAP user. // Check policy for this LDAP user.
ldapPolicies, err := sys.PolicyDBGetLDAP(args.AccountName, args.Groups...) ldapPolicies, err := sys.PolicyDBGetLDAP(parentUser, args.Groups...)
if err != nil { if err != nil {
return false return false
} }