From 0451576fcba9c5ff7734db3cd94616d2620d4cb1 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 2 Oct 2015 13:52:27 +0200 Subject: [PATCH] Add policy to commands definitions (#123) --- mod_statsdx/src/mod_statsdx.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod_statsdx/src/mod_statsdx.erl b/mod_statsdx/src/mod_statsdx.erl index 0d35115..15c9d17 100644 --- a/mod_statsdx/src/mod_statsdx.erl +++ b/mod_statsdx/src/mod_statsdx.erl @@ -1618,6 +1618,7 @@ commands() -> [ #ejabberd_commands{name = get_top_users, tags = [stats], desc = "Get top X users with larger offlinemsg, vcard or roster.", + policy = admin, module = ?MODULE, function = get_top_users, args = [{topnumber, integer}, {topic, string}], result = {top, {list, @@ -1629,11 +1630,13 @@ commands() -> }}}, #ejabberd_commands{name = getstatsdx, tags = [stats], desc = "Get statistical value.", + policy = admin, module = ?MODULE, function = getstatsdx, args = [{name, string}], result = {stat, integer}}, #ejabberd_commands{name = getstatsdx_host, tags = [stats], desc = "Get statistical value for this host.", + policy = admin, module = ?MODULE, function = getstatsdx, args = [{name, string}, {host, string}], result = {stat, integer}}