Author: thomas.heute(a)jboss.com
Date: 2007-03-23 06:31:03 -0400 (Fri, 23 Mar 2007)
New Revision: 6804
Modified:
trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java
Log:
When an admin creates a user, bypass the email verification and enable the user
automatically
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-23
08:55:44 UTC (rev 6803)
+++ trunk/core/src/main/org/jboss/portal/core/portlet/user/UserPortlet.java 2007-03-23
10:31:03 UTC (rev 6804)
@@ -725,7 +725,7 @@
subscriptionMode = UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC;
}
- if
(UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC.equals(subscriptionMode))
+ if (UserPortletConstants.SUBSCRIPTIONMODE_AUTOMATIC.equals(subscriptionMode)
|| req.isUserInRole("Admin"))
{
setProperty(user, User.INFO_USER_ENABLED, Boolean.TRUE);
}