summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-05-02 22:10:33 +0200
committerLeif Johansson <leifj@sunet.se>2011-05-02 22:10:33 +0200
commitcafa5a5d406a641036dfdc8dee76340a1699b936 (patch)
tree1f4fee59fd1cb996ff786d351403193d9a370308
parent1c3423d452d0ca1e20dff36ce05c2e35d2894f29 (diff)
map on all
-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