Skip to content

Commit

Permalink
Fix logic.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Sep 12, 2023
1 parent d25aef1 commit dcb72fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galaxy_ng/social/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def handle_v3_namespace(self, session_user, session_email, session_login, github

if not self.validate_namespace_name(namespace_name):
print(f'DID NOT VALIDATE NAMESPACE NAME: {namespace_name}')
return
return False, False

# does the namespace already exist?
found_namespace = Namespace.objects.filter(name=namespace_name).first()
Expand All @@ -100,7 +100,7 @@ def handle_v3_namespace(self, session_user, session_email, session_login, github
print(f'FOUND EXISTING OWNERS: {owners}')

if session_user in owners:
return found_namespace
return found_namespace, False

# should always have a namespace ...
if found_namespace:
Expand Down

0 comments on commit dcb72fb

Please sign in to comment.