quintonm 2003/03/20 10:26:02
Modified: src/java/org/apache/turbine/services/pull
TurbinePullService.java
Log:
Authorized and Persistent tools now require an an additional check of
user.hasLoggedIn() before
they are added. Although, this should be redundant to checking isAnonymousUser()
this has been
reverted until we can come to an agreement on the dev list.
Revision Changes Path
1.20 +6 -3
jakarta-turbine-2/src/java/org/apache/turbine/services/pull/TurbinePullService.java
Index: TurbinePullService.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/pull/TurbinePullService.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- TurbinePullService.java 20 Mar 2003 16:51:36 -0000 1.19
+++ TurbinePullService.java 20 Mar 2003 18:26:01 -0000 1.20
@@ -402,8 +402,11 @@
if (!TurbineSecurity.isAnonymousUser(user))
{
- populateWithSessionTools(authorizedTools, context, data, user, false);
- populateWithSessionTools(persistentTools, context, data, user, true);
+ if (user.hasLoggedIn())
+ {
+ populateWithSessionTools(authorizedTools, context, data, user,
false);
+ populateWithSessionTools(persistentTools, context, data, user,
true);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]