Merge lp:~mhall119/loco-team-portal/bug-508471 into lp:loco-team-portal
Proposed by
Michael Hall
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~mhall119/loco-team-portal/bug-508471 | ||||
Merge into: | lp:loco-team-portal | ||||
Diff against target: |
15 lines (+4/-1) 1 file modified
loco_directory/events/models.py (+4/-1) |
||||
To merge this branch: | bzr merge lp:~mhall119/loco-team-portal/bug-508471 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Bechtold (community) | Approve | ||
Review via email: mp+17518@code.launchpad.net |
To post a comment you must log in.
The Attendee stuff was checking if the user had registered for an event, but it was failing if the user was AnonymousUser (aka, not logged in). This adds a check to user.is_ authenticated( ), and will return False on the team_event. is_attending( user) call if the user is not logged in.