Fix recursive method call in sudo controller
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Garrett Mills 2021-04-15 13:02:18 -05:00
parent 627499537d
commit 636e1f8ab9
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -107,7 +107,7 @@ class SudoController extends LDAPController {
parse_sudo_hosts(filter, target_hosts = []) {
if ( Array.isArray(filter?.filters) ) {
for ( const sub_filter of filter.filters ) {
target_hosts = [...target_hosts, ...this.parse_iam_targets(sub_filter)]
target_hosts = [...target_hosts, ...this.parse_sudo_hosts(sub_filter)]
}
} else if ( filter?.attribute ) {
if ( filter.attribute === 'sudohost' ) {