25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix bug in api_permission parsing

This commit is contained in:
Paweł Chmielowski 2017-02-28 13:36:24 +01:00
parent d6a9ef5bc1
commit ce3317da7a

View File

@ -364,7 +364,8 @@ parse_who(Name, Atom, ParseOauth) when is_atom(Atom) ->
parse_who(Name, Defs, ParseOauth) when is_list(Defs) ->
lists:map(
fun([Val]) ->
parse_who(Name, [Val], ParseOauth);
[NVal] = parse_who(Name, [Val], ParseOauth),
NVal;
({access, Val}) ->
try acl:access_rules_validator(Val) of
Rule ->