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
"""
Not really settings...
This information will be published in this SP metadata...
"""
SP_CONTACTS = {
......
......@@ -136,8 +136,8 @@ def cleanup_direct_permissions(user):
user.user_permissions.clear()
def set_user_compat_flags(user):
is_active = True
def set_user_compat_flags(user, user_is_active=True):
user.is_active = user_is_active
user.is_staff = False
user.is_superuser = False
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment