mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Do not force command line to pass a credentials
This commit is contained in:
parent
b62aa3d2dc
commit
a0c8012c66
@ -537,6 +537,9 @@ execute_command(AccessCommands1, Auth1, Name, Arguments, Version, CallerInfo) ->
|
|||||||
execute_check_policy(
|
execute_check_policy(
|
||||||
_Auth, _JID, #ejabberd_commands{policy = open} = Command, Arguments) ->
|
_Auth, _JID, #ejabberd_commands{policy = open} = Command, Arguments) ->
|
||||||
do_execute_command(Command, Arguments);
|
do_execute_command(Command, Arguments);
|
||||||
|
execute_check_policy(
|
||||||
|
noauth, _JID, Command, Arguments) ->
|
||||||
|
do_execute_command(Command, Arguments);
|
||||||
execute_check_policy(
|
execute_check_policy(
|
||||||
_Auth, _JID, #ejabberd_commands{policy = restricted} = Command, Arguments) ->
|
_Auth, _JID, #ejabberd_commands{policy = restricted} = Command, Arguments) ->
|
||||||
do_execute_command(Command, Arguments);
|
do_execute_command(Command, Arguments);
|
||||||
@ -546,9 +549,6 @@ execute_check_policy(
|
|||||||
execute_check_policy(
|
execute_check_policy(
|
||||||
admin, JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
|
admin, JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
|
||||||
execute_check_access(JID, 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(
|
execute_check_policy(
|
||||||
{User, Server, _, _}, JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
|
{User, Server, _, _}, JID, #ejabberd_commands{policy = user} = Command, Arguments) ->
|
||||||
execute_check_access(JID, Command, [User, Server | Arguments]).
|
execute_check_access(JID, Command, [User, Server | Arguments]).
|
||||||
|
Loading…
Reference in New Issue
Block a user