changeset 3330:6dad19029223

don't allow "remember_last_visit" to override actions (other than show)
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 19 Mar 2008 12:38:48 +0100
parents 6ed28a1edfe0
children 104663b555ce
files MoinMoin/request/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Wed Mar 19 12:23:17 2008 +0100
+++ b/MoinMoin/request/__init__.py	Wed Mar 19 12:38:48 2008 +0100
@@ -1210,7 +1210,7 @@
 
             # Handle request. We have these options:
             # 1. jump to page where user left off
-            if not pagename and self.user.remember_last_visit:
+            if not pagename and self.user.remember_last_visit and action_name == 'show':
                 pagetrail = self.user.getTrail()
                 if pagetrail:
                     # Redirect to last page visited