Ignore:
Timestamp:
Mar 28, 2012, 1:52:37 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
72a3d90, 4d48697
Parents:
c4255b2
git-author:
Alex Dehnert <adehnert@…> (03/28/12 01:52:37)
git-committer:
Alex Dehnert <adehnert@…> (03/28/12 01:52:37)
Message:

List no connections to groups when logged out

This fixes ASA Trac #88.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    r4368c00 r58a5c6a  
    9393            roles.append((role.display_name, role, group.officers(role=role), ))
    9494        context['roles'] = roles
    95         context['my_roles'] = group.officers(person=self.request.user.username).select_related('role')
     95        context['my_roles'] = []
     96        if self.request.user.is_authenticated():
     97            context['my_roles'] = group.officers(person=self.request.user.username).select_related('role')
    9698
    9799        return context
Note: See TracChangeset for help on using the changeset viewer.