Add policy to commands definitions (#123)

This commit is contained in:
Badlop 2015-10-02 13:52:27 +02:00
parent 0cade69713
commit 0451576fcb
1 changed files with 3 additions and 0 deletions

View File

@ -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}}