[jboss-cvs] JBoss Messaging SVN: r5974 - trunk/src/main/org/jboss/messaging/core/server/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 3 13:11:59 EST 2009
Author: clebert.suconic at jboss.com
Date: 2009-03-03 13:11:59 -0500 (Tue, 03 Mar 2009)
New Revision: 5974
Modified:
trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java
Log:
Fixing JMSTest
Modified: trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java 2009-03-03 17:47:51 UTC (rev 5973)
+++ trunk/src/main/org/jboss/messaging/core/server/impl/ServerSessionImpl.java 2009-03-03 18:11:59 UTC (rev 5974)
@@ -1303,8 +1303,17 @@
log.info("Trying to create queue address " + address + " name " + name);
- // make sure the user has privileges to create this queue
- securityStore.check(address, CheckType.CREATE, this);
+
+ if (temporary)
+ {
+ // make sure the user has privileges to create this queue
+ securityStore.check(address, CheckType.READ, this);
+ }
+ else
+ {
+ // make sure the user has privileges to create this queue
+ securityStore.check(address, CheckType.CREATE, this);
+ }
Binding binding = postOffice.getBinding(name);
More information about the jboss-cvs-commits
mailing list