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
1 changed files with 2 additions and 1 deletions

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 ->