summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,