Skip to content

Commit

Permalink
Fix IDP-less debugging on django5
Browse files Browse the repository at this point in the history
  • Loading branch information
guilbaults committed Oct 8, 2024
1 parent 7aefd88 commit dc3e8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userportal/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def clean_username(self, username):
username = username.split('@')[0]
return username

def configure_user(self, request, user):
def configure_user(self, request, user, created=True):
if '[email protected]' in request.META['affiliation'] \
or '[email protected]' in request.META['affiliation']:
user.is_staff = True
Expand Down

0 comments on commit dc3e8bd

Please sign in to comment.