diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-06-17 15:53:37 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-06-17 15:53:37 +0100 |
commit | 8c55cc1fdaebaee2f2adc90453b36e2590686cdc (patch) | |
tree | 73792bc2269bfde503de006851d4160b95866fe2 | |
parent | 6154fbdfb428a524640a361fd99d79a1f04f0f8d (diff) | |
download | rabbitmq-server-8c55cc1fdaebaee2f2adc90453b36e2590686cdc.tar.gz |
Allow unprivileged users to passive declare.bug24180
-rw-r--r-- | src/rabbit_channel.erl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 991b0b06..49b61600 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -894,7 +894,6 @@ handle_method(#'exchange.declare'{exchange = ExchangeNameBin, nowait = NoWait}, _, State = #ch{virtual_host = VHostPath}) -> ExchangeName = rabbit_misc:r(VHostPath, exchange, ExchangeNameBin), - check_configure_permitted(ExchangeName, State), check_not_default_exchange(ExchangeName), _ = rabbit_exchange:lookup_or_die(ExchangeName), return_ok(State, NoWait, #'exchange.declare_ok'{}); @@ -990,7 +989,6 @@ handle_method(#'queue.declare'{queue = QueueNameBin, _, State = #ch{virtual_host = VHostPath, conn_pid = ConnPid}) -> QueueName = rabbit_misc:r(VHostPath, queue, QueueNameBin), - check_configure_permitted(QueueName, State), {{ok, MessageCount, ConsumerCount}, #amqqueue{} = Q} = rabbit_amqqueue:with_or_die( QueueName, fun (Q) -> {rabbit_amqqueue:stat(Q), Q} end), |