Author: adrianc
Date: Sun Nov 10 14:02:47 2013
New Revision: 1540475
URL:
http://svn.apache.org/r1540475Log:
Fixed a bug introduced in rev 1534264 - unable to log into web applications that do not have a base-permission attribute.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java?rev=1540475&r1=1540474&r2=1540475&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentConfig.java Sun Nov 10 14:02:47 2013
@@ -873,7 +873,7 @@ public final class ComponentConfig {
this.sessionCookieAccepted = !"false".equals(element.getAttribute("session-cookie-accepted"));
this.privileged = !"false".equals(element.getAttribute("privileged"));
String basePermStr = element.getAttribute("base-permission");
- if (basePermStr.isEmpty()) {
+ if (!basePermStr.isEmpty()) {
this.basePermission = basePermStr.split(",");
} else {
// default base permission is NONE