summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-09-08 19:03:48 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-09-08 19:03:48 +0100
commit265ff974bb23b66111567de9b4f7f1fac11e0c4e (patch)
tree3e61a3e70239f59618717b1cd013b5866e828ac1
parent480446873ff27ca316f6e87acbbbe68ea7acc0fb (diff)
downloadrabbitmq-server-265ff974bb23b66111567de9b4f7f1fac11e0c4e.tar.gz
consistencybug24416
-rw-r--r--src/rabbit_auth_backend_internal.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_auth_backend_internal.erl b/src/rabbit_auth_backend_internal.erl
index 6ae48e41..156d98dc 100644
--- a/src/rabbit_auth_backend_internal.erl
+++ b/src/rabbit_auth_backend_internal.erl
@@ -110,10 +110,10 @@ internal_check_user_login(Username, Fun) ->
Refused
end.
-check_vhost_access(#user{username = Username}, VHost) ->
+check_vhost_access(#user{username = Username}, VHostPath) ->
case mnesia:dirty_read({rabbit_user_permission,
#user_vhost{username = Username,
- virtual_host = VHost}}) of
+ virtual_host = VHostPath}}) of
[] -> false;
[_R] -> true
end.