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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
django
ssoauth
Commits
453565a8
Commit
453565a8
authored
1 year ago
by
Art
Browse files
Options
Downloads
Patches
Plain Diff
Use the Group model from the updated hsh app version in hsh_compat
parent
2a393b8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ssoauth/extras/hsh_compat.py
+1
-1
1 addition, 1 deletion
ssoauth/extras/hsh_compat.py
with
1 addition
and
1 deletion
ssoauth/extras/hsh_compat.py
+
1
−
1
View file @
453565a8
...
...
@@ -28,6 +28,6 @@ def get_group_names_for_user(user):
except
(
Account
.
DoesNotExist
,
Account
.
MultipleObjectsReturned
,)
as
e
:
logger
.
error
(
"
hsh.Account not found for {user}. {e.__class__.__name__}: {e}
"
.
format
(
user
=
user
,
e
=
e
))
return
set
()
hsh_groups
=
hsh_account
.
auth_
groups
.
filter
(
GROUP_NAME_LOOKUP
)
hsh_groups
=
hsh_account
.
groups
.
filter
(
GROUP_NAME_LOOKUP
)
return
{
g
.
name
for
g
in
hsh_groups
}
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