mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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:
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
Block a user