]> granicus.if.org Git - ejabberd/commitdiff
Fix bug in api_permission parsing
authorPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 28 Feb 2017 12:36:24 +0000 (13:36 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 28 Feb 2017 12:36:34 +0000 (13:36 +0100)
src/ejabberd_access_permissions.erl

index fbbc29a8f5e9f335a2fce3243f586b26e4522063..244b2c121c5d1f0cc0cdb6d20bbc955355804e9d 100644 (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 ->