|
|
@@ -152,7 +152,7 @@ stop() ->
|
|
|
%%%=============================================================================
|
|
|
|
|
|
init([]) ->
|
|
|
- {ok, AcOpts} = application:get_env(access_control),
|
|
|
+ {ok, AcOpts} = application:get_env(access),
|
|
|
ets:new(?ACCESS_CONTROL_TAB, [set, named_table, protected, {read_concurrency, true}]),
|
|
|
ets:insert(?ACCESS_CONTROL_TAB, {auth_modules, init_mods(auth, proplists:get_value(auth, AcOpts))}),
|
|
|
ets:insert(?ACCESS_CONTROL_TAB, {acl_modules, init_mods(acl, proplists:get_value(acl, AcOpts))}),
|