Skip to content

Commit 4fddd72

Browse files
authored
Fix for no default organization is specified and release 21.9.11
1 parent b1a531e commit 4fddd72

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sentry_auth_ldap/backend.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def get_or_build_user(self, username, ldap_user):
7171
organizations = Organization.objects.filter(slug=organization_slug)
7272
elif organization_name:
7373
organizations = Organization.objects.filter(name=organization_name)
74+
else:
75+
return (user, built)
7476

7577
if not organizations or len(organizations) < 1:
7678
return (user, built)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
setup(
2020
name='sentry-auth-ldap',
21-
version='21.9.10',
21+
version='21.9.11',
2222
author='Chad Killingsworth <chad.killingsworth@banno.com>, Barron Hagerman <barron.hagerman@banno.com>, PM Extra <pm@jubeat.net>',
2323
author_email='pm@jubeat.net',
2424
url='https://github.com/PMExtra/sentry-auth-ldap',

0 commit comments

Comments
 (0)