Skip to content
Snippets Groups Projects
Commit 687efd00 authored by Art's avatar Art :lizard:
Browse files

Fix user.is_active from being entirely ignored

parent a6bf2e82
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ PRETEND_AUTH_BACKEND = django_settings.AUTHENTICATION_BACKENDS[0] # pretend to ...@@ -60,7 +60,7 @@ PRETEND_AUTH_BACKEND = django_settings.AUTHENTICATION_BACKENDS[0] # pretend to
""" """
Not really settings... This information will be published in this SP metadata...
""" """
SP_CONTACTS = { SP_CONTACTS = {
......
...@@ -136,8 +136,8 @@ def cleanup_direct_permissions(user): ...@@ -136,8 +136,8 @@ def cleanup_direct_permissions(user):
user.user_permissions.clear() user.user_permissions.clear()
def set_user_compat_flags(user): def set_user_compat_flags(user, user_is_active=True):
is_active = True user.is_active = user_is_active
user.is_staff = False user.is_staff = False
user.is_superuser = False user.is_superuser = False
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment