summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-09 13:09:33 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-09 13:09:33 +0100
commitc51e194871494407b03901726ae259b20699d9b4 (patch)
treed0798fc7f64045d1ae3cd38d7a2a0742b3608a60
parent731c8661d3a7b18b8ab2f639d5639201f4f248fc (diff)
downloadrabbitmq-server-c51e194871494407b03901726ae259b20699d9b4.tar.gz
slight optimisation
-rw-r--r--src/rabbit_access_control.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_access_control.erl b/src/rabbit_access_control.erl
index f9e98094..24960200 100644
--- a/src/rabbit_access_control.erl
+++ b/src/rabbit_access_control.erl
@@ -173,8 +173,8 @@ check_resource_access(Username,
false;
[#user_permission{permission = P}] ->
case re:run(
- binary_to_list(Name),
- binary_to_list(element(permission_index(Permission), P))) of
+ Name,
+ element(permission_index(Permission), P)) of
{match, _} -> true;
nomatch -> false
end