diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-10-06 10:47:17 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-10-06 10:59:43 +0200 |
commit | 8accb8ee0c4a14d35f0296fc09b2989bff949275 (patch) | |
tree | 87a599a35cb9e8e37a8d37bb56879fe71ea0b99a /src | |
parent | Fix typos in Czech translation (#1318) (diff) |
Use proper default value for api_permissions
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_access_permissions.erl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ejabberd_access_permissions.erl b/src/ejabberd_access_permissions.erl index f37de9a13..ac023b3f2 100644 --- a/src/ejabberd_access_permissions.erl +++ b/src/ejabberd_access_permissions.erl @@ -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), |