From 265ff974bb23b66111567de9b4f7f1fac11e0c4e Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 8 Sep 2011 19:03:48 +0100 Subject: consistency --- src/rabbit_auth_backend_internal.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rabbit_auth_backend_internal.erl') 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. -- cgit v1.2.1