Skip to content

Commit d5b5b80

Browse files
committed
rabbit_auth_backend_internal: with_user_and_vhost() was moved
... to rabbit_vhost. [#118490793]
1 parent 9cf0cfe commit d5b5b80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rabbit_auth_backend_internal.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ set_permissions(Username, VHostPath, ConfigurePerm, WritePerm, ReadPerm) ->
283283
end
284284
end, [ConfigurePerm, WritePerm, ReadPerm]),
285285
R = rabbit_misc:execute_mnesia_transaction(
286-
rabbit_misc:with_user_and_vhost(
286+
rabbit_vhost:with_user_and_vhost(
287287
Username, VHostPath,
288288
fun () -> ok = mnesia:write(
289289
rabbit_user_permission,
@@ -305,7 +305,7 @@ set_permissions(Username, VHostPath, ConfigurePerm, WritePerm, ReadPerm) ->
305305

306306
clear_permissions(Username, VHostPath) ->
307307
R = rabbit_misc:execute_mnesia_transaction(
308-
rabbit_misc:with_user_and_vhost(
308+
rabbit_vhost:with_user_and_vhost(
309309
Username, VHostPath,
310310
fun () ->
311311
ok = mnesia:delete({rabbit_user_permission,
@@ -390,7 +390,7 @@ list_vhost_permissions(VHostPath, Ref, AggregatorPid) ->
390390
list_user_vhost_permissions(Username, VHostPath) ->
391391
list_permissions(
392392
user_vhost_perms_info_keys(),
393-
rabbit_misc:with_user_and_vhost(
393+
rabbit_vhost:with_user_and_vhost(
394394
Username, VHostPath, match_user_vhost(Username, VHostPath))).
395395

396396
extract_user_permission_params(Keys, #user_permission{

0 commit comments

Comments
 (0)