summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/auth
diff options
context:
space:
mode:
Diffstat (limited to 'src/meetingtools/apps/auth')
-rw-r--r--src/meetingtools/apps/auth/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py
index fe2d97a..8af2e1a 100644
--- a/src/meetingtools/apps/auth/views.py
+++ b/src/meetingtools/apps/auth/views.py
@@ -44,7 +44,7 @@ def _is_member_or_employee_old(affiliations):
return 'student' in lpa or 'staff' in lpa or ('member' in lpa and not 'student' in lpa)
def _is_member_or_employee(user):
- lpa = map(_localpart,user.groups)
+ lpa = map(_localpart,user.groups.all())
return 'student' in lpa or 'staff' in lpa or ('member' in lpa and not 'student' in lpa)
@never_cache