diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-09-08 19:03:48 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-09-08 19:03:48 +0100 |
commit | 265ff974bb23b66111567de9b4f7f1fac11e0c4e (patch) | |
tree | 3e61a3e70239f59618717b1cd013b5866e828ac1 /src/rabbit_auth_backend_internal.erl | |
parent | 480446873ff27ca316f6e87acbbbe68ea7acc0fb (diff) | |
download | rabbitmq-server-265ff974bb23b66111567de9b4f7f1fac11e0c4e.tar.gz |
consistencybug24416
Diffstat (limited to 'src/rabbit_auth_backend_internal.erl')
-rw-r--r-- | src/rabbit_auth_backend_internal.erl | 4 |
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. |