Skip to content

Commit

Permalink
fix(esn-accounts): do not overwrite role/status after not first esnac…
Browse files Browse the repository at this point in the history
…counts login
  • Loading branch information
thejoeejoee committed Nov 11, 2023
1 parent 47e9379 commit c7eadb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fiesta/apps/esnaccounts/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def update_section_membership(

SectionPluginsReconciler.reconcile(section)

SectionMembership.objects.update_or_create(
# role and activation only for first time
SectionMembership.objects.get_or_create(
user=user,
section=section,
defaults=dict(
Expand Down

0 comments on commit c7eadb9

Please sign in to comment.