incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [7/12] git commit: [#5354] don't try to create user-project for anonymous user
Date Wed, 05 Dec 2012 20:01:51 GMT
[#5354] don't try to create user-project for anonymous user


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/919f6b05
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/919f6b05
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/919f6b05

Branch: refs/heads/tv/5382
Commit: 919f6b05b41505cfc226c3245d14bc78e3bd4917
Parents: e7754c5
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Tue Dec 4 15:39:26 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Dec 4 15:39:26 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/auth.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/919f6b05/Allura/allura/model/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index 8ac3370..7a6d366 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -583,7 +583,7 @@ class User(MappedClass, ActivityNode, ActivityObject):
         '''
         from .project import Project
         p = Project.query.get(shortname='u/%s' % self.username, deleted=False)
-        if not p:
+        if not p and self != User.anonymous():
             # create user-project on demand if it is missing
             from allura import model as M
             n = M.Neighborhood.query.get(name='Users')


Mime
View raw message