summaryrefslogtreecommitdiff
path: root/src/rabbit_direct.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-12-05 11:36:11 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-12-05 11:36:11 +0000
commit1977561b78a0b75400e683db860bf412445224af (patch)
tree7c0543204862ea4e0bcc43f3998d10bd1d2bbce8 /src/rabbit_direct.erl
parentf106429bc42ff46944790acc0a8c917db9ff9405 (diff)
parentd205a4285ca02d12493ac0dd0f5256af4294723c (diff)
downloadrabbitmq-server-1977561b78a0b75400e683db860bf412445224af.tar.gz
stable to default
Diffstat (limited to 'src/rabbit_direct.erl')
-rw-r--r--src/rabbit_direct.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_direct.erl b/src/rabbit_direct.erl
index 749a67b1..f6140f09 100644
--- a/src/rabbit_direct.erl
+++ b/src/rabbit_direct.erl
@@ -92,7 +92,7 @@ connect0(AuthFun, VHost, Protocol, Pid, Infos) ->
end.
connect1(User, VHost, Protocol, Pid, Infos) ->
- try rabbit_access_control:check_vhost_access(User, VHost) of
+ try rabbit_access_control:check_vhost_access(User, VHost, undefined) of
ok -> ok = pg_local:join(rabbit_direct, Pid),
rabbit_event:notify(connection_created, Infos),
{ok, {User, rabbit_reader:server_properties(Protocol)}}