aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_commands.erl
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-08-07 18:24:08 +0200
committerMickael Remond <mremond@process-one.net>2016-08-07 18:24:08 +0200
commita0c8012c66cce3f01562edc4d5708fdbb6a7f76f (patch)
tree5c4e44aa37b2097eea0c50ba1c780bc84f043d54 /src/ejabberd_commands.erl
parentmod_client_state: Let other modules filter stanzas (diff)
Do not force command line to pass a credentials
Diffstat (limited to '')
-rw-r--r--src/ejabberd_commands.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_commands.erl b/src/ejabberd_commands.erl
index a8b3e25ab..7110410f1 100644
--- a/src/ejabberd_commands.erl
+++ b/src/ejabberd_commands.erl
@@ -538,6 +538,9 @@ execute_check_policy(
_Auth, _JID, #ejabberd_commands{policy = open} = Command, Arguments) ->
do_execute_command(Command, Arguments);
execute_check_policy(
+ noauth, _JID, Command, Arguments) ->
+ do_execute_command(Command, Arguments);
+execute_check_policy(
_Auth, _JID, #ejabberd_commands{policy = restricted} = Command, Arguments) ->
do_execute_command(Command, Arguments);
execute_check_policy(
@@ -547,9 +550,6 @@ execute_check_policy(
admin, JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
execute_check_access(JID, Command, Arguments);
execute_check_policy(
- noauth, _JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
- do_execute_command(Command, Arguments);
-execute_check_policy(
{User, Server, _, _}, JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
execute_check_access(JID, Command, [User, Server | Arguments]).