Fix the problem where users in normal repos are marked as outside of the organization.
This commit is contained in:
parent
22dd031f91
commit
a1476b32ea
4 changed files with 57 additions and 24 deletions
|
@ -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))
|
||||
|
|
Reference in a new issue