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

Commit

Permalink
fix(role_mapping): add support for python 3 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
matejc committed Jan 22, 2021
1 parent a4f30c2 commit d8da488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_ldap_auth/backend.py
Expand Up @@ -23,7 +23,7 @@ def _get_effective_sentry_role(group_names):
if not group_names or not role_mapping:
return None

applicable_roles = [role for role, groups in role_mapping.iteritems() if group_names.intersection(groups)]
applicable_roles = [role for role, groups in role_mapping.items() if group_names.intersection(groups)]

if not applicable_roles:
return None
Expand Down

0 comments on commit d8da488

Please sign in to comment.