mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Fix LDAP policy application on user policy (#11887)
This commit is contained in:
parent
749e9c5771
commit
906d68c356
@ -1891,7 +1891,7 @@ func (sys *IAMSys) IsAllowedLDAPSTS(args iampolicy.Args, parentUser string) bool
|
||||
}
|
||||
|
||||
// Check policy for this LDAP user.
|
||||
ldapPolicies, err := sys.PolicyDBGetLDAP(args.AccountName, args.Groups...)
|
||||
ldapPolicies, err := sys.PolicyDBGetLDAP(parentUser, args.Groups...)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user