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:
parent
03681cd68d
commit
bc063b8f97
|
@ -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]).
|
||||
|
|
Loading…
Reference in New Issue