mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -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.
|
// 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user