Fix the problem where users in normal repos are marked as outside of the organization.

This commit is contained in:
yackob03 2013-11-05 17:10:14 -05:00
parent 22dd031f91
commit a1476b32ea
4 changed files with 57 additions and 24 deletions

View file

@ -246,7 +246,7 @@ def get_matching_users(username_prefix, organization=None):
if organization:
self.is_org_member = (args[1] == organization.username)
else:
self.is_org_member = False
self.is_org_member = None
return (MatchingUserResult(*args) for args in query.tuples().limit(10))