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

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
......@@ -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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment