Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ssoauth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
django
ssoauth
Commits
687efd00
Commit
687efd00
authored
7 years ago
by
Art
Browse files
Options
Downloads
Patches
Plain Diff
Fix user.is_active from being entirely ignored
parent
a6bf2e82
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ssoauth/app_settings/defaults.py
+1
-1
1 addition, 1 deletion
ssoauth/app_settings/defaults.py
ssoauth/auth_utils.py
+2
-2
2 additions, 2 deletions
ssoauth/auth_utils.py
with
3 additions
and
3 deletions
ssoauth/app_settings/defaults.py
+
1
−
1
View file @
687efd00
...
@@ -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
=
{
...
...
This diff is collapsed.
Click to expand it.
ssoauth/auth_utils.py
+
2
−
2
View file @
687efd00
...
@@ -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
=
Tru
e
user
.
is_active
=
user_is_activ
e
user
.
is_staff
=
False
user
.
is_staff
=
False
user
.
is_superuser
=
False
user
.
is_superuser
=
False
try
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment