app/soc/views/helper/access.py
changeset 1192 b53fa1e05dbd
parent 1189 14357ec13647
child 1198 3318f8d00691
--- a/app/soc/views/helper/access.py	Mon Feb 02 20:56:14 2009 +0000
+++ b/app/soc/views/helper/access.py	Mon Feb 02 21:46:01 2009 +0000
@@ -463,7 +463,9 @@
 
     self.checkIsLoggedIn(django_args)
 
-    if not self.user and not user_logic.isFormerAccount(self.id):
+    user_entity = user_logic.getForFields({'account':self.id}, unique=True)
+
+    if not user_entity and not user_logic.isFormerAccount(self.id):
       # this account has not been used yet
       return