mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
cleanup handling of STS isAllowed and simplifies the PolicyDBGet() (#18554)
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ func startSFTPServer(c *cli.Context) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ldapPolicies, _ := globalIAMSys.PolicyDBGet(targetUser, false, targetGroups...)
|
||||
ldapPolicies, _ := globalIAMSys.PolicyDBGet(targetUser, targetGroups...)
|
||||
if len(ldapPolicies) == 0 {
|
||||
return nil, errAuthentication
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user