Skip to content
This repository has been archived by the owner on Sep 24, 2023. It is now read-only.

Commit

Permalink
FIX add default value as None for AUTH_LDAP_SENTRY_GROUP_ROLE_MAPPING (
Browse files Browse the repository at this point in the history
  • Loading branch information
rodgomes authored and barronhagerman committed Jan 17, 2020
1 parent b7e9b61 commit a756d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_ldap_auth/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _get_effective_sentry_role(group_names):
'owner',
]

role_mapping = getattr(settings, 'AUTH_LDAP_SENTRY_GROUP_ROLE_MAPPING')
role_mapping = getattr(settings, 'AUTH_LDAP_SENTRY_GROUP_ROLE_MAPPING', None)

if not group_names or not role_mapping:
return None
Expand Down

0 comments on commit a756d2e

Please sign in to comment.