diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-02 22:10:33 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-02 22:10:33 +0200 |
commit | cafa5a5d406a641036dfdc8dee76340a1699b936 (patch) | |
tree | 1f4fee59fd1cb996ff786d351403193d9a370308 /src/meetingtools/apps/auth | |
parent | 1c3423d452d0ca1e20dff36ce05c2e35d2894f29 (diff) |
map on all
Diffstat (limited to 'src/meetingtools/apps/auth')
-rw-r--r-- | src/meetingtools/apps/auth/views.py | 2 |
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 |