From cafa5a5d406a641036dfdc8dee76340a1699b936 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 2 May 2011 22:10:33 +0200 Subject: map on all --- src/meetingtools/apps/auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.1