You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2012/12/05 18:27:47 UTC
[6/34] git commit: [#5354] don't try to create user-project for
anonymous user
[#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/cj/4691
Commit: 919f6b05b41505cfc226c3245d14bc78e3bd4917
Parents: e7754c5
Author: Dave Brondsema <db...@geek.net>
Authored: Tue Dec 4 15:39:26 2012 +0000
Committer: Dave Brondsema <db...@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')