Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Allow anonymous to see split; #449
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Apr 14, 2013
1 parent 2aa03ab commit 5c29480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gittip/models/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ def get_age_in_seconds(self):
return out

def allowed_to_answer(self):
return self.is_suspicious is False \
return not self.ANON \
and self.is_suspicious is False \
and len(self.exchanges) > 1

def compute_split(self):
Expand Down
2 changes: 0 additions & 2 deletions www/%username/members.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ from gittip.utils import get_participant
# ================= ^L

request.allow('GET', 'POST')
if user.ANON:
raise Response(404)
participant = get_participant(request, restrict=False)
if user == participant:
raise Response(400)
Expand Down

0 comments on commit 5c29480

Please sign in to comment.