Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11868, comment 12


Ignore:
Timestamp:
Dec 11, 2014, 5:13:00 PM (4 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11868, comment 12

    initial v1  
    11{{{#!diff
    22diff --git a/trac/web/session.py b/trac/web/session.py
    3 index d2b9eef..8692eb6 100644
     3index d2b9eef..7a3593e 100644
    44--- a/trac/web/session.py
    55+++ b/trac/web/session.py
    6 @@ -137,6 +137,8 @@ class DetachedSession(dict):
     6@@ -137,6 +137,9 @@ class DetachedSession(dict):
    77             # new ones. The last concurrent request to do so "wins".
    88
    99             if self._old != self:
    10 +                if 'name' in self._old or 'email' in self._old:
     10+                if self._old.get('name') != self.get('name') or \
     11+                        self._old.get('email') != self.get('email'):
    1112+                    self.env.invalidate_known_users_cache()
    1213                 if not items and not authenticated: