mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-18 22:15:20 +02:00
Fix bug in api_permission parsing
This commit is contained in:
parent
d6a9ef5bc1
commit
ce3317da7a
|
@ -364,7 +364,8 @@ parse_who(Name, Atom, ParseOauth) when is_atom(Atom) ->
|
||||||
parse_who(Name, Defs, ParseOauth) when is_list(Defs) ->
|
parse_who(Name, Defs, ParseOauth) when is_list(Defs) ->
|
||||||
lists:map(
|
lists:map(
|
||||||
fun([Val]) ->
|
fun([Val]) ->
|
||||||
parse_who(Name, [Val], ParseOauth);
|
[NVal] = parse_who(Name, [Val], ParseOauth),
|
||||||
|
NVal;
|
||||||
({access, Val}) ->
|
({access, Val}) ->
|
||||||
try acl:access_rules_validator(Val) of
|
try acl:access_rules_validator(Val) of
|
||||||
Rule ->
|
Rule ->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user