fix(auth_ldap): do not load plugin when no params configured

This commit is contained in:
Zaiming Shi 2021-01-27 12:27:58 +01:00
parent da406689c5
commit fc71285c3f
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ load_acl_hook(DeviceDn) ->
if_enabled(Cfgs, Fun) ->
case get_env(Cfgs) of
{ok, []} -> ok;
{ok, InitArgs} -> Fun(InitArgs)
end.