Author: theute
Date: 2011-07-04 09:44:45 -0400 (Mon, 04 Jul 2011)
New Revision: 6807
Modified:
epp/portal/branches/EPP_5_2_Branch/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
Log:
JBEPP-974: Upgrade to eXo JCR 1.14.0.CR2
Upgrading core led to not being able to access the register page or anything restricted to
/platform/guests as shown in GTNPORTAL-1879
Modified:
epp/portal/branches/EPP_5_2_Branch/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2011-07-04
08:57:47 UTC (rev 6806)
+++
epp/portal/branches/EPP_5_2_Branch/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2011-07-04
13:44:45 UTC (rev 6807)
@@ -29,6 +29,7 @@
import org.exoplatform.services.log.Log;
import org.exoplatform.services.security.ConversationState;
import org.exoplatform.services.security.Identity;
+import org.exoplatform.services.security.IdentityConstants;
import org.exoplatform.services.security.MembershipEntry;
import java.io.Serializable;
@@ -483,7 +484,7 @@
Permission permission = new Permission();
permission.setPermissionExpression(expPerm);
String groupId = permission.getGroupId();
- if (currentUser == null && groupId.equals(guestGroup_))
+ if ((currentUser == null || currentUser.equals(IdentityConstants.ANONIM))
&& groupId.equals(guestGroup_))
{
return true;
}
Show replies by date