Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Jan 20, 2025
1 parent 724dc3e commit 7cf98c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/morphodict/frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def index(request): # pragma: no cover
if not request.user.is_authenticated:
return redirect("/accounts/login/?next=%s" % request.path)
else:
groupnames = [x["name"] for x in request.user.groupsvalues("name")]
groupnames = [x["name"] for x in request.user.groups.values("name")]
if settings.MORPHODICT_REQUIRES_LOGIN_IN_GROUP not in groupnames:
logout(request)
return redirect("/accounts/login/?next=%s" % request.path)
Expand Down

0 comments on commit 7cf98c7

Please sign in to comment.