Author: ndkhoiits
Date: 2010-04-01 07:13:03 -0400 (Thu, 01 Apr 2010)
New Revision: 2446
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java
Log:
GTNPORTAL-930 reset USER_PROFILE attribute in CacheUserProfileFilter if info's user is
changed
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java 2010-04-01
10:40:38 UTC (rev 2445)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component/UIAccountEditInputSet.java 2010-04-01
11:13:03 UTC (rev 2446)
@@ -23,6 +23,8 @@
import org.exoplatform.services.organization.OrganizationService;
import org.exoplatform.services.organization.Query;
import org.exoplatform.services.organization.User;
+import org.exoplatform.services.security.ConversationState;
+import org.exoplatform.web.CacheUserProfileFilter;
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.webui.application.WebuiRequestContext;
import org.exoplatform.commons.serialization.api.annotations.Serialized;
@@ -158,6 +160,12 @@
}
service.getUserHandler().saveUser(user, true);
enableChangePassword(false);
+
+ ConversationState state = ConversationState.getCurrent();
+ if
(username.equals(((User)state.getAttribute(CacheUserProfileFilter.USER_PROFILE)).getUserName()))
+ {
+ state.setAttribute(CacheUserProfileFilter.USER_PROFILE, user);
+ }
return true;
}
Show replies by date