Skip to content

Commit

Permalink
Update dojo/backends.py
Browse files Browse the repository at this point in the history
Co-authored-by: kiblik <[email protected]>
  • Loading branch information
fopina and kiblik authored Nov 16, 2024
1 parent 2685839 commit d400356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dojo/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class Saml2Backend(_Saml2Backend):

@cached_property
def group_re(self):
if not settings.SAML2_ENABLED or not settings.SAML2_GROUPS_ATTRIBUTE or not settings.SAML2_GROUPS_FILTER:
return None
return re.compile(settings.SAML2_GROUPS_FILTER)
if settings.SAML2_ENABLED and settings.SAML2_GROUPS_ATTRIBUTE and settings.SAML2_GROUPS_FILTER:
return re.compile(settings.SAML2_GROUPS_FILTER)
return None

def _update_user(
self,
Expand Down

0 comments on commit d400356

Please sign in to comment.