allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [10/12] allura git commit: [#7704] ticket:662 Check for pending status in User.private_project
Date Mon, 10 Nov 2014 09:37:36 GMT
[#7704] ticket:662 Check for pending status in User.private_project


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

Branch: refs/heads/ib/7704
Commit: f8447a3f9cb7dc2a83212a3498fcb10ae8aad0f7
Parents: d15b334
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Fri Oct 10 00:54:43 2014 +0300
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Tue Nov 4 13:57:03 2014 +0000

----------------------------------------------------------------------
 Allura/allura/model/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/f8447a3f/Allura/allura/model/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index 96a9795..ea07999 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -669,7 +669,7 @@ class User(MappedClass, ActivityNode, ActivityObject, SearchIndexable):
         '''
         Returns the personal user-project for the user
         '''
-        if self.disabled:
+        if self.disabled or self.pending:
             return None
 
         from allura import model as M


Mime
View raw message