Author: trong.tran
Date: 2011-08-15 06:39:08 -0400 (Mon, 15 Aug 2011)
New Revision: 7125
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
Log:
GTNPORTAL-1993 Keep the portal name only if the portal is available to user
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java 2011-08-15
09:05:23 UTC (rev 7124)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java 2011-08-15
10:39:08 UTC (rev 7125)
@@ -297,7 +297,10 @@
{
userPortalConfig =
service_.getUserPortalConfig(portalName, remoteUser,
PortalRequestContext.USER_PORTAL_CONTEXT);
- session.setAttribute(LAST_PORTAL_NAME, portalName);
+ if (userPortalConfig != null)
+ {
+ session.setAttribute(LAST_PORTAL_NAME, portalName);
+ }
}
catch (Exception e)
{
Show replies by date