fix(auth_ldap): do not load plugin when no params configured
This commit is contained in:
parent
da406689c5
commit
fc71285c3f
|
@ -60,6 +60,7 @@ load_acl_hook(DeviceDn) ->
|
|||
|
||||
if_enabled(Cfgs, Fun) ->
|
||||
case get_env(Cfgs) of
|
||||
{ok, []} -> ok;
|
||||
{ok, InitArgs} -> Fun(InitArgs)
|
||||
end.
|
||||
|
||||
|
|
Loading…
Reference in New Issue