mirror of https://github.com/apache/activemq.git
improvement for https://issues.apache.org/activemq/browse/AMQ-1747 patch
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@731529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8a857bdc01
commit
4199c95098
|
@ -54,11 +54,9 @@ public class AuthorizationBroker extends BrokerFilter implements SecurityAdminMB
|
||||||
|
|
||||||
Destination existing = this.getDestinationMap().get(destination);
|
Destination existing = this.getDestinationMap().get(destination);
|
||||||
if (existing != null) {
|
if (existing != null) {
|
||||||
return existing;
|
return super.addDestination(context, destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(!((ActiveMQTempDestination)destination).getConnectionId().equals(context.getConnectionId().getValue())
|
|
||||||
// ) {
|
|
||||||
if (!securityContext.isBrokerContext()) {
|
if (!securityContext.isBrokerContext()) {
|
||||||
Set<?> allowedACLs = null;
|
Set<?> allowedACLs = null;
|
||||||
if (!destination.isTemporary()) {
|
if (!destination.isTemporary()) {
|
||||||
|
@ -72,7 +70,6 @@ public class AuthorizationBroker extends BrokerFilter implements SecurityAdminMB
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
return super.addDestination(context, destination);
|
return super.addDestination(context, destination);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue