]> granicus.if.org Git - ejabberd/commitdiff
Expose unregister API command
authorMickael Remond <mremond@process-one.net>
Wed, 9 Nov 2016 08:04:52 +0000 (09:04 +0100)
committerMickael Remond <mremond@process-one.net>
Wed, 9 Nov 2016 08:04:52 +0000 (09:04 +0100)
src/ejabberd_admin.erl

index ae2fac3e1016446236a546ef67b3da9e9f616a80..d2145f211c664e1e0e92d3b15c117a1e7f21e8ad 100644 (file)
@@ -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}},