25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix crash when api_permisions don't have who: section

Default value of that field was wrong, so lets correct this.

This fixes issue #3957
This commit is contained in:
Paweł Chmielowski 2022-12-15 11:27:11 +01:00
parent 03681cd68d
commit bc063b8f97

View File

@ -377,6 +377,6 @@ validator() ->
fun(Os) ->
{proplists:get_value(from, Os, []),
proplists:get_value(who, Os, none),
proplists:get_value(what, Os, [])}
proplists:get_value(what, Os, {none, none})}
end),
[unique]).