Skip to content

Commit

Permalink
Merge pull request #213 from bento-platform/fix/django-5-compat
Browse files Browse the repository at this point in the history
fix(auth): remote user backend type sig compat with Django 5
  • Loading branch information
davidlougheed authored Jul 19, 2024
2 parents db9bca7 + cb3fce1 commit 1156066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento_lib/auth/django_remote_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BentoRemoteUserMiddleware(RemoteUserMiddleware):

class BentoRemoteUserBackend(RemoteUserBackend):
# noinspection PyMethodMayBeStatic
def configure_user(self, request, user):
def configure_user(self, request, user, created: bool = True):
is_owner = request.META.get(DJANGO_USER_ROLE_HEADER, ROLE_USER) == ROLE_OWNER
user.is_staff = is_owner
user.is_superuser = is_owner
Expand Down

0 comments on commit 1156066

Please sign in to comment.