From bc063b8f9734e523030290175e61cef2610d6f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 15 Dec 2022 11:27:11 +0100 Subject: [PATCH] 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 --- src/ejabberd_access_permissions.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_access_permissions.erl b/src/ejabberd_access_permissions.erl index d4c9dd018..bb569fc8f 100644 --- a/src/ejabberd_access_permissions.erl +++ b/src/ejabberd_access_permissions.erl @@ -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]).