mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-30 17:43:57 +01:00
Use proper default value for api_permissions
This commit is contained in:
parent
a78c3422cd
commit
8accb8ee0c
@ -228,15 +228,16 @@ code_change(_OldVsn, State, _Extra) ->
|
||||
%%% Internal functions
|
||||
%%%===================================================================
|
||||
|
||||
-spec get_definitions(#state{}) -> {#state{}, any()}.
|
||||
get_definitions(#state{definitions = Defs, fragments_generators = Gens} = State) ->
|
||||
DefaultOptions = [{<<"console commands">>,
|
||||
[ejabberd_ctl],
|
||||
[{acl, all}],
|
||||
{all, none}},
|
||||
{[ejabberd_ctl],
|
||||
[{acl, all}],
|
||||
{all, none}}},
|
||||
{<<"admin access">>,
|
||||
[],
|
||||
[{acl, admin}],
|
||||
{all, [start, stop]}}],
|
||||
{[],
|
||||
[{acl, admin}],
|
||||
{all, [start, stop]}}}],
|
||||
NDefs = case Defs of
|
||||
none ->
|
||||
ApiPerms = ejabberd_config:get_option(api_permissions, fun(A) -> A end, DefaultOptions),
|
||||
|
Loading…
Reference in New Issue
Block a user