diff options
Diffstat (limited to 'src/rabbit_access_control.erl')
-rw-r--r-- | src/rabbit_access_control.erl | 4 |
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 |