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

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]).