Skip to content

Commit

Permalink
fis saml_uer_group function
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Oct 31, 2023
1 parent 84bf56a commit 62e9fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/users/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ def get_or_create_user(self, *args, **kwargs):
def saml_user_group():
group_name = getattr(settings, 'SAML_GROUP_NAME', None)
if group_name:
return Group.objects.get_or_create(name=group_name)
group, _ = Group.objects.get_or_create(name=group_name)
return group

0 comments on commit 62e9fd1

Please sign in to comment.