changeset 1953:1d680cab704c namespaces

determine user identity by itemid, not name
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 09 Feb 2013 03:50:16 +0100
parents 7587ba27a85a
children 46f2e436b5ee
files MoinMoin/user.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Sat Feb 09 02:41:42 2013 +0100
+++ b/MoinMoin/user.py	Sat Feb 09 03:50:16 2013 +0100
@@ -685,7 +685,7 @@
 
     def is_current_user(self):
         """ Check if this user object is the user doing the current request """
-        return flaskg.user.name == self.name
+        return flaskg.user.itemid == self.itemid
 
     # Sessions ---------------------------------------------------