Rename Sock to AuthzData

Part of rabbitmq/rabbitmq-auth-backend-cache#20
This commit is contained in:
Luke Bakken 2019-03-22 10:38:23 -07:00
parent 27b3efa75c
commit 033d11266f
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ user_login_authorization(Username, AuthProps) ->
(_) -> unknown
end).
check_vhost_access(#auth_user{} = AuthUser, VHostPath, Sock) ->
with_cache(authz, {check_vhost_access, [AuthUser, VHostPath, Sock]},
check_vhost_access(#auth_user{} = AuthUser, VHostPath, AuthzData) ->
with_cache(authz, {check_vhost_access, [AuthUser, VHostPath, AuthzData]},
fun(true) -> success;
(false) -> refusal;
({error, _} = Err) -> Err;