This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 7915bbc68 speedup: private_project for anonymous
7915bbc68 is described below
commit 7915bbc68202b8ea2a722da9aa862191177d7d0d
Author: Dave Brondsema <[email protected]>
AuthorDate: Mon Jan 23 13:07:58 2023 -0500
speedup: private_project for anonymous
---
Allura/allura/model/auth.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index 027a7a874..b6ab17fec 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -742,7 +742,7 @@ class User(MappedClass, ActivityNode, ActivityObject,
SearchIndexable):
'''
Returns the personal user-project for the user
'''
- if self.disabled or self.pending:
+ if self.disabled or self.pending or self.is_anonymous():
return None
from allura import model as M