diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index 333edffa6..c47bfcead 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -972,7 +972,7 @@ get_commands_spec() -> args = [], result = {num_sessions, integer}}, #ejabberd_commands{name = user_resources, tags = [session], desc = "List user's connected resources", - policy = user, + policy = admin, module = ?MODULE, function = user_resources, args = [{user, binary}, {host, binary}], args_desc = ["User name", "Server name"],