summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-08-04 16:29:51 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-08-04 16:29:51 +0100
commit9f62eadd592aa1e4dbef5e301617c0bee4864b10 (patch)
tree0f869f9e1ab5d6289568459150c886800c1587b9
parentf465fa689c95f6604ff5e095e3070519bf1ba879 (diff)
downloadrabbitmq-server-bug22964.tar.gz
Cosmetics.bug22964
-rw-r--r--src/rabbit_access_control.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_access_control.erl b/src/rabbit_access_control.erl
index c1243e3f..8d00f591 100644
--- a/src/rabbit_access_control.erl
+++ b/src/rabbit_access_control.erl
@@ -328,10 +328,10 @@ set_permissions(Username, VHostPath, ConfigurePerm, WritePerm, ReadPerm) ->
set_permissions(ScopeBin, Username, VHostPath, ConfigurePerm, WritePerm, ReadPerm) ->
lists:map(fun validate_regexp/1, [ConfigurePerm, WritePerm, ReadPerm]),
Scope = case ScopeBin of
- <<"client">> -> client;
+ <<"client">> -> client;
<<"all">> -> all;
- _ -> throw({error, {invalid_scope, ScopeBin}})
- end,
+ _ -> throw({error, {invalid_scope, ScopeBin}})
+ end,
rabbit_misc:execute_mnesia_transaction(
rabbit_misc:with_user_and_vhost(
Username, VHostPath,