mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-19 15:32:08 +02:00
Don't use host from url in webadmin, prefer host used for authentication
This commit is contained in:
parent
35042ebc6a
commit
54f5db851d
@ -1691,7 +1691,7 @@ make_command2(Name, Request, BaseArguments, Options) ->
|
||||
CallerInfo =
|
||||
#{usr => {RUser, RServer, <<"">>},
|
||||
ip => RIp,
|
||||
caller_host => RHost,
|
||||
caller_host => RServer,
|
||||
caller_module => ?MODULE},
|
||||
try {ejabberd_commands:get_command_definition(Name),
|
||||
ejabberd_access_permissions:can_access(Name, CallerInfo)}
|
||||
|
Loading…
Reference in New Issue
Block a user