Author: thomas.heute(a)jboss.com
Date: 2007-03-20 12:01:43 -0400 (Tue, 20 Mar 2007)
New Revision: 6779
Modified:
trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java
Log:
Fix User Portlet, was always displaying "You are not connected"
Modified: trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java
===================================================================
--- trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java 2007-03-20
16:00:04 UTC (rev 6778)
+++ trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java 2007-03-20
16:01:43 UTC (rev 6779)
@@ -193,8 +193,8 @@
String op;
resp.setContentType("text/html");
PrintWriter writer = resp.getWriter();
-
- if ((req.getUser() != null) && (!(isEnabled(req.getUser()))))
+/*
+ if (req.getRemoteUser() == null)
{
req.getPortletSession().invalidate();
PortletRequestDispatcher rd =
getPortletContext().getRequestDispatcher("/WEB-INF/jsp/user/login.jsp");
@@ -211,7 +211,7 @@
rd.include(req, resp);
return;
}
-
+*/
if (req.getRemoteUser() != null)
{
if (req.getWindowState() != WindowState.MAXIMIZED)
@@ -1277,21 +1277,6 @@
return null;
}
- private boolean isEnabled(User user)
- {
- Object enabled = getProperty(user, User.INFO_USER_ENABLED);
-
- if (enabled == null || !(enabled instanceof Boolean))
- {
- return false;
- }
-
- return enabled.equals("true");
-
- }
-
-
-
/*
* private String getTimezoneOffsetString(short timezoneOffset) {
* StringBuffer timeZone = new StringBuffer(); for (int i = 0; i <
Show replies by date