Author: bdaw
Date: 2008-05-20 09:17:02 -0400 (Tue, 20 May 2008)
New Revision: 10780
Modified:
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/common/IdentityUserBean.java
Log:
JBPORTAL-2018 - stupid bug
Modified:
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/common/IdentityUserBean.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/common/IdentityUserBean.java 2008-05-19
21:01:35 UTC (rev 10779)
+++
branches/JBoss_Portal_Branch_2_6/core-identity/src/main/org/jboss/portal/core/identity/ui/common/IdentityUserBean.java 2008-05-20
13:17:02 UTC (rev 10780)
@@ -208,8 +208,11 @@
if (profile == null)
{
+
+ // This is to intercept calls to display current user profile and decrease
number of calls to identity modules
+ // Needs to be done in better way
User user = getCurrentUser();
- if (user == null)
+ if (user == null || !user.getUserName().equals(username))
{
user = this.findUserByUserName(username);
}
Show replies by date