Author: kien_nguyen
Date: 2011-04-25 07:31:16 -0400 (Mon, 25 Apr 2011)
New Revision: 6346
Modified:
portal/branches/branch-GTNPORTAL-1872/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
Log:
GTNPORTAL-1879 Anonymous users couldn't access guests pages
Modified:
portal/branches/branch-GTNPORTAL-1872/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1872/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2011-04-25
09:59:41 UTC (rev 6345)
+++
portal/branches/branch-GTNPORTAL-1872/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2011-04-25
11:31:16 UTC (rev 6346)
@@ -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;
}