Skip to content

Commit

Permalink
Fix auth0_client scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Mar 13, 2024
1 parent 60ab46e commit 1d43829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ def save(self, *args, **kwargs):
self.online_mail = create_online_mail_alias(self)

if self.pk and (old := OnlineUser.objects.filter(pk=self.pk).first()):
from .auth0 import auth0_client

auth0 = None
if self.email != old.email:
from apps.gsuite.mail_syncer.tasks import update_mailing_list
from onlineweb4.settings.gsuite import (
MAILING_LIST_USER_FIELDS_TO_LIST_NAME,
)

from .auth0 import auth0_client

jobmail = MAILING_LIST_USER_FIELDS_TO_LIST_NAME.get("jobmail")
infomail = MAILING_LIST_USER_FIELDS_TO_LIST_NAME.get("infomail")

Expand Down

0 comments on commit 1d43829

Please sign in to comment.