From: Mickael Remond Date: Wed, 9 Nov 2016 08:04:52 +0000 (+0100) Subject: Expose unregister API command X-Git-Tag: 16.12~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35506f54703ac2caec087d2fd269cad55e469360;p=ejabberd Expose unregister API command --- diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl index ae2fac3e1..d2145f211 100644 --- a/src/ejabberd_admin.erl +++ b/src/ejabberd_admin.erl @@ -136,6 +136,7 @@ get_commands_spec() -> result = {res, restuple}}, #ejabberd_commands{name = unregister, tags = [accounts], desc = "Unregister a user", + policy = admin, module = ?MODULE, function = unregister, args = [{user, binary}, {host, binary}], result = {res, restuple}},